Browse Source

Fixed issue with library cards showing when there are no libraries

Henry Whitaker 6 years ago
parent
commit
eb63aa7138
1 changed files with 3 additions and 3 deletions
  1. 3 3
      js/functions.js

+ 3 - 3
js/functions.js

@@ -6577,9 +6577,9 @@ function buildTautulliItem(array){
             `;
             `;
             return card;
             return card;
         };
         };
-        var card = buildCard('movie', movies);
-        card += buildCard('show', tv);
-        card += buildCard('artist', audio);
+        var card = (movies.length > 0) ? buildCard('movie', movies) : '';
+        card += (tv.length > 0) ? buildCard('show', tv) : '';
+        card += (audio.length > 0) ? buildCard('artist', audio) : '';
         return card;
         return card;
     };
     };
     var buildStats = function(data, stat){
     var buildStats = function(data, stat){