Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update queue on type change
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent d7f52bf commit 8224755
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion app/routes/mod-queue.tsx
Expand Up @@ -249,7 +249,21 @@ export default function () {
{entries}
</VStack>
<Box display={isDesktop ? undefined : "none"} ml="16px" w="248px">
<Select>{entryTypes}</Select>
<Select
onChange={async (v) => {
setEntries([]);
setBefore(Date.now());

const { target } = v;

await updateQueue(
target.options[target.selectedIndex].value,
Date.now(),
);
}}
>
{entryTypes}
</Select>
</Box>
</Flex>
<Popover placement="top-end">
Expand Down

0 comments on commit 8224755

Please sign in to comment.