no-results logic fix

This commit is contained in:
shumit taher 2025-08-05 09:39:43 +00:00
parent 600f00ea5e
commit e34d1b5853

View file

@ -36,8 +36,8 @@
@change-modal-visibility="updateModalVisibility"
:isWide="!!singleSectionView || layoutOrientation === 'horizontal'"
:class="(searchValue &&
section.filteredItems.length === 0 &&
(!section.widgets || section.widgets.length === 0)) ? 'no-results' : ''"
(section.filteredItems.length === 0 &&
section.filteredWidgets.length === 0)) ? 'no-results' : ''"
/>
</template>
<!-- Show add new section button, in edit mode -->