Skip to main content

Function: removeFacetValue()

removeFacetValue(filters, dimension, value): FacetFilters

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

Removes a facet value from the filters.

Parameters

filters

FacetFilters

The current facet filters

dimension

keyof FacetFilters

The facet dimension

value

string

The facet value to remove

Returns

FacetFilters

New filters with the value removed