From c6ec28f1c52ef529cfda508b3ce3d972591d50b6 Mon Sep 17 00:00:00 2001
From: FinalDoom <7464170-FinalDoom@users.noreply.gitlab.com>
Date: Fri, 18 Feb 2022 06:39:27 -0700
Subject: Change Radarr/Sonarr v3 to use totalRecords as counting paged records
 is wrong number

---
 src/components/services/Radarr.vue | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

(limited to 'src/components/services/Radarr.vue')

diff --git a/src/components/services/Radarr.vue b/src/components/services/Radarr.vue
index 7573667..5c40aaa 100644
--- a/src/components/services/Radarr.vue
+++ b/src/components/services/Radarr.vue
@@ -83,11 +83,7 @@ export default {
               }
             }
           } else {
-            for (const record of queue.records) {
-              if (record.movieId) {
-                this.activity++;
-              }
-            }
+            this.activity = queue.totalRecords;
           }
         })
         .catch((e) => {
-- 
cgit v1.2.3

