diff --git a/app/routes/mod-queue.tsx b/app/routes/mod-queue.tsx index 8d58855..d64501c 100644 --- a/app/routes/mod-queue.tsx +++ b/app/routes/mod-queue.tsx @@ -129,6 +129,7 @@ export default function () { before: number, show_closed = false, jump_item_to_top = false, + clear_all_others = false, ): Promise { const queueReq = await fetch( `/api/mod-queue/list?before=${before}&showClosed=${show_closed}&type=${queue_type}`, @@ -153,7 +154,7 @@ export default function () { const itemType = searchParams.get("type"); let entryData: { [k: string]: any }[] = await queueReq.json(); - const newEntries = [...entries]; + const newEntries = clear_all_others ? [] : [...entries]; if ( itemId && @@ -267,7 +268,6 @@ export default function () { const ItemDisplay = (