From 62d83ed8ab0c1bbc941d4fa266f4e2cb518cba95 Mon Sep 17 00:00:00 2001 From: NeKz Date: Wed, 10 Apr 2024 06:35:50 +0200 Subject: [PATCH] Fix TypeError --- src/server/app/assets/js/module.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/app/assets/js/module.js b/src/server/app/assets/js/module.js index e9cd81f..5023c4f 100644 --- a/src/server/app/assets/js/module.js +++ b/src/server/app/assets/js/module.js @@ -303,7 +303,10 @@ const initRerenderModal = () => { }); rerenderModalQueueButton?.addEventListener('click', () => { - rerenderModalRepairCheckbox.setAttribute('disabled', ''); + if (rerenderModalRepairCheckbox) { + rerenderModalRepairCheckbox.setAttribute('disabled', ''); + } + rerenderModalQueueButton.setAttribute('disabled', ''); rerenderModalQueueButton.textContent = 'Adding to queue...';