fix checkbox checked state

Signed-off-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Emma Indal
2021-05-24 09:22:15 +02:00
committed by Eric Peterson
parent cdfa7d69df
commit ed69943458
@@ -122,6 +122,11 @@ export const CheckBoxFilter = ({ fieldName, values }: ValuedFilterProps) => {
edge="start"
disableRipple
color="primary"
checked={
filters[fieldName]
? (filters[fieldName] as string[]).includes(value)
: false
}
tabIndex={-1}
value={value}
name={value}