diff --git a/client/app/(dashboard)/components/Table/index.jsx b/client/app/(dashboard)/components/Table/index.jsx index ae5a778e..75c26bbd 100644 --- a/client/app/(dashboard)/components/Table/index.jsx +++ b/client/app/(dashboard)/components/Table/index.jsx @@ -21,7 +21,7 @@ export default function Table({ tabs }) { const setSelectedItems = useDashboardStore(state => state.setSelectedItems); function handleSelect(item) { - if (selectedItems.find(column => isEqual(column, item))) setSelectedItems(selectedItems.filter(selectedRow => selectedRow !== item)); + if (selectedItems.find(column => isEqual(column, item))) setSelectedItems(selectedItems.filter(selectedRow => !isEqual(selectedRow, item))); else setSelectedItems([...selectedItems, item]); }