mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 21:53:06 +00:00
fix: narrow multi-filter param switch after name skip
This commit is contained in:
parent
3e49841fd7
commit
3dbbc5b203
1 changed files with 1 additions and 3 deletions
|
|
@ -122,10 +122,8 @@ export const buildMunicipalityMobileFilterOptions = ({
|
|||
return 'class'
|
||||
case 'level':
|
||||
return 'level'
|
||||
case 'name':
|
||||
case 'coverage':
|
||||
throw new Error(`Unexpected multi filter param: ${definition.param}`)
|
||||
default: {
|
||||
// `name` is skipped above; `coverage` is toggle-only.
|
||||
const _exhaustive: never = definition.param
|
||||
return _exhaustive
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue