Fix view filters

This commit is contained in:
Daniel Lautzenheiser
2023-04-10 16:25:46 -04:00
parent 3582b2bb89
commit 7a9a465bf4
4 changed files with 12 additions and 14 deletions

View File

@ -25,6 +25,7 @@ const FilterControl = ({
const handleFilterClick = useCallback(
(viewFilter: ViewFilter) => (event: MouseEvent | ChangeEvent) => {
event.stopPropagation();
event.preventDefault();
onFilterClick(viewFilter);
},
[onFilterClick],

View File

@ -71,7 +71,6 @@ const EntriesCollection = ({
const [prevCollection, setPrevCollection] = useState(collection);
const groups = useGroups(collection.name);
console.log('[GROUPS] groups', groups);
const entries = useEntries(collection);