From 267cc02c9677ab5c3fc6f3f7a7d66cd757b88e76 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:51:07 -0400 Subject: [PATCH] Fix old items not being removed when queue type is changed --- app/routes/mod-queue.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/routes/mod-queue.tsx b/app/routes/mod-queue.tsx index 393bae4..944678b 100644 --- a/app/routes/mod-queue.tsx +++ b/app/routes/mod-queue.tsx @@ -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; @@ -301,7 +304,7 @@ export default function () { onClose={itemModals.infraction.onClose} /> - + {ItemDisplay}