Replace state regardless of if item exists

This commit is contained in:
Regalijan 2023-10-30 17:18:46 -04:00
parent 9bce86eacb
commit 19fa40a70b
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -186,6 +186,8 @@ export default function () {
["appeal", "gma", "inactivity", "report"].includes(itemType) &&
jump_item_to_top
) {
history.replaceState(null, "", location.origin + location.pathname);
const specifiedItem = entryData.find((e) => e.id === itemId);
if (specifiedItem) {