Skip to content

Commit

Permalink
Fix TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
NeKzor committed Apr 10, 2024
1 parent c4eda77 commit 62d83ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/app/assets/js/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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...';

Expand Down

0 comments on commit 62d83ed

Please sign in to comment.