(category: string)
| 215 | |
| 216 | // Select all facets in a category |
| 217 | function selectCategory(category: string): void { |
| 218 | const categoryFacets = getFacetsInCategory(category) |
| 219 | const current = selectedFacetIds.value |
| 220 | const newFacets = [...new Set([...current, ...categoryFacets])] |
| 221 | selectedFacetIds.value = newFacets |
| 222 | } |
| 223 | |
| 224 | // Deselect all facets in a category |
| 225 | function deselectCategory(category: string): void { |
no test coverage detected