Skip to content

Commit 253630b

Browse files
committed
wip
1 parent dcd4ede commit 253630b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/components/Filter/components/ai/components/FacetAssistant/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export function mapResponse(response: AiResponse): SelectedFilter[] {
3131
const filteredFacets = facets.filter(filterFacet);
3232

3333
// Map facets to selected filters.
34-
return filteredFacets.map(mapSelectedFilter);
34+
return filteredFacets
35+
.map(mapSelectedFilter)
36+
.filter((filter) => filter.value.length > 0);
3537
}
3638

3739
/**

src/views/ExploreView/exploreView.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
CategoryFilter,
1414
Filters,
1515
} from "../../components/Filter/components/Filters/filters";
16-
import { SearchAllFilters } from "../../components/Filter/components/SearchAllFilters/searchAllFilters";
1716
import { SURFACE_TYPE } from "../../components/Filter/components/surfaces/types";
1817
import { Index as IndexView } from "../../components/Index/index";
1918
import { SidebarLabel } from "../../components/Layout/components/Sidebar/components/SidebarLabel/sidebarLabel";
@@ -149,13 +148,6 @@ export const ExploreView = (props: ExploreViewProps): JSX.Element => {
149148
/>
150149
</Stack>
151150
<FacetAssistant />
152-
<SearchAllFilters
153-
categoryViews={categoryViews}
154-
onFilter={onFilterChange.bind(null, true)}
155-
surfaceType={
156-
mdDown ? SURFACE_TYPE.POPPER_DRAWER : SURFACE_TYPE.POPPER_MENU
157-
}
158-
/>
159151
</SidebarTools>
160152
<Filters
161153
categoryFilters={categoryFilters}

0 commit comments

Comments
 (0)