Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove search params from url after unshifting item
  • Loading branch information
regalijan committed Oct 29, 2023
1 parent 0e76704 commit 4376033
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/routes/mod-queue.tsx
Expand Up @@ -188,6 +188,8 @@ export default function () {
if (specifiedItem) {
entryData = entryData.filter((entry) => entry.id !== specifiedItem.id);
entryData.unshift(specifiedItem);

history.replaceState(null, "", location.origin + location.pathname);
} else {
const itemReq = await fetch(`/api/mod-queue/${itemType}/${itemId}`);

Expand Down

0 comments on commit 4376033

Please sign in to comment.