Skip to content

Commit

Permalink
Fix zone accordion not toggling on click
Browse files Browse the repository at this point in the history
  • Loading branch information
zweiro committed Nov 11, 2022
1 parent d14c6f8 commit 4a0e2f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/zones/ZoneListButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ import { ReactComponent as ResetIcon } from "../../assets/ResetIcon_Active_Mouse
import { ReactComponent as TrashIcon } from "../../assets/TEMP_trash.svg";

import { getTypeEntries } from "../../utils/utils";
import { zoneReset, zoneUpdated } from "../../features/zones/zonesSlice";
import {
zoneActiveToggled,
zoneReset,
zoneUpdated,
} from "../../features/zones/zonesSlice";

interface ZoneListButtonProps {
zone: Zone;
Expand Down Expand Up @@ -78,6 +82,7 @@ export function ZoneListButton({
? { backgroundColor: colorTheme[100] }
: undefined
}
onClick={() => dispatch(zoneActiveToggled(zone.id))}
>
<Flex align="center" justify="flex-start">
{hiddenMode ? (
Expand Down

0 comments on commit 4a0e2f4

Please sign in to comment.