Skip to content

Commit

Permalink
fix multiselect snap bug
Browse files Browse the repository at this point in the history
  • Loading branch information
toddnief committed Jul 8, 2024
1 parent c8773fe commit 0c60fb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dashboard-react/components/DropdownCheckbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ const DropdownCheckbox = React.memo(function DropdownCheckbox({

const handleCheckboxChange = (key, value) => (event) => {
const checked = event.target.checked;
// console.log(`checked for ${key} ${value}`);
// console.log(checked);
console.log(`checked for ${key} ${value}`);
console.log(checked);
if (checked) {
state.setFilterValue(key, [...filtersSnap[key], value]);
state.setFilterValue(key, [...snap.filters[key], value]);
} else {
// console.log("removing");
console.log("removing");
state.setFilterValue(
key,
snap.filters[key].filter((item) => item !== value)
Expand Down

0 comments on commit 0c60fb2

Please sign in to comment.