Skip to content

Commit

Permalink
fix: Fix filter indicator with day filter
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Feb 9, 2023
1 parent 6a8aa71 commit c5e2d47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/src/scenes/dashboard/filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ export const Filter = ({
const [hasFilters, setHasFilters] = useState(false);
useEffect(() => {
setHasFilters(
filters.application !== "" ||
filters.environment !== "" ||
filters.location !== "" ||
filters.day !== ""
initialState.application !== "" ||
initialState.environment !== "" ||
initialState.location !== "" ||
initialState.day !== ""
);
}, [filters]);
}, [initialState]);

const [open, setOpen] = useState(false);
const [anchorEl, setAnchorEl] = useState<HTMLElement | null>(null);
Expand Down

0 comments on commit c5e2d47

Please sign in to comment.