Skip to main content

Function: toggleFacetValue()

toggleFacetValue(filters, dimension, value): FacetFilters

Defined in: web/lib/hooks/use-faceted-search.ts:269

Toggles a facet value in the filters.

Parameters

filters

FacetFilters

The current facet filters

dimension

keyof FacetFilters

The facet dimension

value

string

The facet value to toggle

Returns

FacetFilters

New filters with the value toggled