Removes unnecessary variable

This commit is contained in:
mabashian 2019-06-12 14:45:51 -04:00 committed by Jake McDermott
parent 9c50609776
commit 0023591bb0

View File

@ -244,8 +244,7 @@ export default ['$compile', 'Attr', 'Icon',
// Show the "no items" box when loading is done and the user isn't actively searching and there are no results
if (options.showEmptyPanel === undefined || options.showEmptyPanel === true){
const emptyListClass = list.emptyListClass || "List-noItems";
html += `<div class="${emptyListClass}" ng-show="${list.name}.length === 0 && (searchTags | isEmpty)">`;
html += `<div class="${list.emptyListClass || "List-noItems"}" ng-show="${list.name}.length === 0 && (searchTags | isEmpty)">`;
html += (list.emptyListText) ? list.emptyListText : i18n._("PLEASE ADD ITEMS TO THIS LIST");
html += "</div>";
}