# HG changeset patch # User Mike Becker # Date 1767723264 -3600 # Node ID 179bda934121ff3d6d40dad21114f2866e71e155 # Parent fa8274466c70f566ee2a1740b87dd31341af2e30 fix javascript error when trying to configure non-existing linkable-issues search box diff -r fa8274466c70 -r 179bda934121 src/main/webapp/issue-editor.js --- a/src/main/webapp/issue-editor.js Thu Jan 01 17:12:22 2026 +0100 +++ b/src/main/webapp/issue-editor.js Tue Jan 06 19:14:24 2026 +0100 @@ -58,6 +58,7 @@ window.addEventListener("load", () => { toggleVariantStatus(); - const project = document.getElementById('linkable-issues').dataset.project; - configureSearchBox('linkable-issues', project); + const sbox = document.getElementById('linkable-issues'); + if (!sbox) return; + configureSearchBox('linkable-issues', sbox.dataset.project); });