Skip to content

Commit e3d4b1e

Browse files
committed
fix(unified-search): add missing supportsActiveFilters calculation
The supportsActiveFilters variable was used but never defined, causing the filtered/unfiltered results separation to fail silently. Signed-off-by: nfebe <fenn25.fn@gmail.com>
1 parent fb249c2 commit e3d4b1e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core/src/components/UnifiedSearch/UnifiedSearchModal.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,10 @@ export default defineComponent({
528528
}
529529
})
530530
531+
const activeContentFilters = this.filters.filter(f => f.type === 'date' || f.type === 'person')
532+
const supportedContentFilters = activeFilters.filter(f => f.type === 'date' || f.type === 'person')
533+
const supportsActiveFilters = supportedContentFilters.length >= activeContentFilters.length
534+
531535
if (this.providerResultLimit > 5) {
532536
params.limit = this.providerResultLimit
533537
unifiedSearchLogger.debug('Limiting search to', params.limit)

0 commit comments

Comments
 (0)