Skip to content

Commit

Permalink
fix: history push for group change
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKetmo committed Nov 14, 2024
1 parent ccf8c03 commit b9eeab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/alerts/group-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function GroupSelect(props: Props) {
const { labels, defaultValue } = props;

const [open, setOpen] = useState<boolean>(false);
const [value, setValue] = useQueryState('group', { defaultValue });
const [value, setValue] = useQueryState('group', { defaultValue, history: 'push' });

return (
<div className="flex space-x-2 items-center">
Expand Down Expand Up @@ -67,7 +67,7 @@ export default function GroupSelect(props: Props) {
key={label}
value={label}
onSelect={(currentValue) => {
setValue(currentValue === value ? "" : currentValue);
setValue(currentValue);
setOpen(false);
}}
>
Expand Down

0 comments on commit b9eeab7

Please sign in to comment.