File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
components/Filter/components/ai/components/FacetAssistant Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff 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/**
Original file line number Diff line number Diff 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" ;
1716import { SURFACE_TYPE } from "../../components/Filter/components/surfaces/types" ;
1817import { Index as IndexView } from "../../components/Index/index" ;
1918import { 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 }
You can’t perform that action at this time.
0 commit comments