From 0c60fb2ea934b4a42cad148eab6739f2356ae414 Mon Sep 17 00:00:00 2001 From: toddnief Date: Mon, 8 Jul 2024 10:40:21 -0500 Subject: [PATCH] fix multiselect snap bug --- dashboard-react/components/DropdownCheckbox.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dashboard-react/components/DropdownCheckbox.js b/dashboard-react/components/DropdownCheckbox.js index fb6bff0..09cff28 100644 --- a/dashboard-react/components/DropdownCheckbox.js +++ b/dashboard-react/components/DropdownCheckbox.js @@ -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)