Skip to content

Commit

Permalink
fix: open ev filters functioning
Browse files Browse the repository at this point in the history
  • Loading branch information
tvergho committed Dec 14, 2021
1 parent bc0d87e commit 21d72af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/query/Filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Filters = ({
return (
<>
<button type="button" className={styles['filter-prompt']} onClick={() => setIsFiltersShown((i) => !i)}>toggle filters</button>
<motion.div className={styles.filters} animate={{ height: isFiltersShown ? (width > 1200 ? 100 : (width < 600 ? 350 : 200)) : 0, overflow: isFiltersShown ? 'visible' : 'hidden' }}>
<motion.div className={styles.filters} animate={{ height: isFiltersShown ? (width > 1200 ? 130 : (width < 600 ? 350 : 200)) : 0, overflow: isFiltersShown ? 'visible' : 'hidden' }}>
<div className={styles.filter}>
<h6>SIDE</h6>
<Multiselect
Expand Down
4 changes: 2 additions & 2 deletions pages/query.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ const QueryPage = () => {
};

const onDivisionSelect = (divisions: DivisionOption[]) => {
if (divisions.length === 1) {
if (divisions.length < divisionOptions.length) {
updateUrl({ exclude_division: divisionOptions.filter((opt) => !divisions.find((div) => div.value === opt.value)).map((opt) => opt.value).join(',') });
} else if (divisions.length === 2) {
} else {
updateUrl({}, ['exclude_division']);
}
};
Expand Down

0 comments on commit 21d72af

Please sign in to comment.