Skip to content

Commit

Permalink
fix(reactplay#849) 🐛 [Bug report]: Minified MUI error on click Filter (
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachin-chaurasiya committed Jan 3, 2023
1 parent b54608d commit 5228f2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/components/MultiSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export default function MultipleSelectCheckmarks({
input={<OutlinedInput label={label} />}
labelId="demo-multiple-checkbox-label"
renderValue={renderValueHandler}
value={filterQuery[filterKey]}
// MUI Select requires list as values,
// so, if no values are present we will assign empty list
value={filterQuery[filterKey] || []}
onChange={handleChange}
onClose={resetSearchText}
>
Expand Down

0 comments on commit 5228f2b

Please sign in to comment.