diff --git a/app/javascript/packs/admin.js b/app/javascript/packs/admin.js index 4e817129d6..038e9b4347 100644 --- a/app/javascript/packs/admin.js +++ b/app/javascript/packs/admin.js @@ -192,7 +192,7 @@ ready(() => { } document.querySelector('a#add-instance-button')?.addEventListener('click', (e) => { - const domain = document.getElementById('by_domain')?.value; + const domain = document.querySelector('input[type="text"]#by_domain')?.value; if (domain) { const url = new URL(event.target.href);