Skip to content

Commit 8b4c053

Browse files
committed
update filter options
1 parent 52eee65 commit 8b4c053

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/Search/SearchPageHeader/SearchFiltersBar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ function SearchFiltersBar({queryJSON, headerButtonsOptions, isMobileSelectionMod
103103
}, [unsafeGroupBy]);
104104

105105
const [feedOptions, feed] = useMemo(() => {
106-
const feedFilterValue = flatFilters
106+
const feedFilterValues = flatFilters
107107
.find((filter) => filter.key === CONST.SEARCH.SYNTAX_FILTER_KEYS.FEED)
108-
?.filters.find((filter) => filter.operator === CONST.SEARCH.SYNTAX_OPERATORS.EQUAL_TO)?.value;
108+
?.filters?.map((filter) => filter.value);
109109
const options = getFeedOptions(allFeeds, allCards);
110-
const value = feedFilterValue ? options.filter((option) => option.value === feedFilterValue) : [];
110+
const value = feedFilterValues ? options.filter((option) => feedFilterValues.includes(option.value)) : [];
111111
return [options, value];
112112
}, [flatFilters, allFeeds, allCards]);
113113

0 commit comments

Comments
 (0)