Function getFilterSelectionTuples

The read side of withFilterSelection: the current selection of a filter as a list of tuples.

If the state has no such filter, or the filter has no parameter.

  • Parameters

    • state: FilteredSearchState

      The filtered search state.

    • endpoint: string

      The endpoint of the filter or facet (for facets, the options endpoint).

    Returns (string | number)[][]

    The selected tuples, or [] when nothing is selected.