diff --git a/src/mixins/HomeMixin.js b/src/mixins/HomeMixin.js index 3a030055..447dd45e 100644 --- a/src/mixins/HomeMixin.js +++ b/src/mixins/HomeMixin.js @@ -135,13 +135,13 @@ const HomeMixin = { } }, /* Returns true if there is more than 1 sub-result visible during searching */ - checkIfResults() { - if (!this.sections) return false; + checkIfResults(sections) { + if (!sections) return false; else { let itemsFound = true; - this.sections.forEach((section) => { + sections.forEach((section) => { if (section.widgets && section.widgets.length > 0) itemsFound = false; - if (this.filterTiles(section.items, this.searchValue).length > 0) itemsFound = false; + if (section.filteredItems.length > 0) itemsFound = false; }); return itemsFound; } diff --git a/src/views/Home.vue b/src/views/Home.vue index a01da0f8..eba9ea99 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -27,7 +27,7 @@ + (singleSectionView ? 'single-section-view ' : '') + (this.colCount ? `col-count-${this.colCount} ` : '')" > -