fix: view filter and group by types

This commit is contained in:
Daniel Lautzenheiser
2023-01-25 15:57:30 -05:00
parent f95625f20d
commit 71df89c81e
3 changed files with 19 additions and 3 deletions

View File

@ -57,7 +57,7 @@ const FilterControl = ({
}}
>
{viewFilters.map(viewFilter => {
const checked = filter[viewFilter.id]?.active ?? false;
const checked = Boolean(viewFilter.id && filter[viewFilter?.id]?.active) ?? false;
const labelId = `filter-list-label-${viewFilter.label}`;
return (
<MenuItem