diff --git a/app/javascript/controllers/modal_controller.js b/app/javascript/controllers/modal_controller.js index f055d648f..0b1736373 100644 --- a/app/javascript/controllers/modal_controller.js +++ b/app/javascript/controllers/modal_controller.js @@ -160,6 +160,8 @@ export default class extends Controller { } displayAppliedIcon() { + if (this.appliedIcon === null) { return } + if (this.modalCheckboxes.some((check) => check.checked === true)) { this.appliedIcon.classList.remove("hidden"); this.appliedIcon.classList.add("inline-block");