diff --git a/src/components/favoriteitems.js b/src/components/favoriteitems.js index bfd2c9bfc1..c82910743f 100644 --- a/src/components/favoriteitems.js +++ b/src/components/favoriteitems.js @@ -145,7 +145,9 @@ import '../elements/emby-itemscontainer/emby-itemscontainer'; let html = ''; if (result.Items.length) { - if ((html += '
', !layoutManager.tv && options.Limit && result.Items.length >= options.Limit)) { + html += '
'; + + if (!layoutManager.tv && options.Limit && result.Items.length >= options.Limit) { html += ''; html += '

'; html += globalize.translate(section.name);