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:
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}
|
||||
|
||||
Reference in New Issue
Block a user