Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix old items not being removed when queue type is changed
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 8b1e44f commit 267cc02
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/routes/mod-queue.tsx
Expand Up @@ -186,7 +186,10 @@ export default function () {
}
}

if (!entryData.length) return;
if (!entryData.length) {
setEntries([]);
return;
}

for (const entry of entryData) {
let cardType = queue_type;
Expand Down Expand Up @@ -301,7 +304,7 @@ export default function () {
onClose={itemModals.infraction.onClose}
/>
<Flex>
<VStack w={isDesktop ? "container.md" : "container.lg"}>
<VStack maxW="container.lg">
<Box display={isDesktop ? "none" : undefined} mb="16px">
{ItemDisplay}
</Box>
Expand Down

0 comments on commit 267cc02

Please sign in to comment.