Fix old items not being removed when queue type is changed
This commit is contained in:
parent
8b1e44fa91
commit
267cc02c96
@ -186,7 +186,10 @@ export default function () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!entryData.length) return;
|
if (!entryData.length) {
|
||||||
|
setEntries([]);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (const entry of entryData) {
|
for (const entry of entryData) {
|
||||||
let cardType = queue_type;
|
let cardType = queue_type;
|
||||||
@ -301,7 +304,7 @@ export default function () {
|
|||||||
onClose={itemModals.infraction.onClose}
|
onClose={itemModals.infraction.onClose}
|
||||||
/>
|
/>
|
||||||
<Flex>
|
<Flex>
|
||||||
<VStack w={isDesktop ? "container.md" : "container.lg"}>
|
<VStack maxW="container.lg">
|
||||||
<Box display={isDesktop ? "none" : undefined} mb="16px">
|
<Box display={isDesktop ? "none" : undefined} mb="16px">
|
||||||
{ItemDisplay}
|
{ItemDisplay}
|
||||||
</Box>
|
</Box>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user