Skip to content

Commit 06fef8c

Browse files
committed
questlog: quicfix
1 parent 71be69b commit 06fef8c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

public/script/questlog.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,12 @@ document.addEventListener("DOMContentLoaded", () => {
242242
(document.querySelector("#quest-tile-" + id) as HTMLElement).classList.add("active");
243243
for (const otherId of Object.keys(state.quests)) {
244244
if (otherId !== id) {
245-
(document.querySelector("#quest-edit-screen-" + otherId) as HTMLElement).style.display = "none";
245+
const questEditScreen = document.querySelector("#quest-edit-screen-" + otherId) as HTMLElement;
246+
247+
if (questEditScreen) {
248+
questEditScreen.style.display = "none";
249+
}
250+
246251
(document.querySelector("#quest-tile-" + otherId) as HTMLElement).classList.remove("active");
247252
}
248253
}

0 commit comments

Comments
 (0)