From e512aa9cb0c1057fc2ceded0aa885229b08bbf20 Mon Sep 17 00:00:00 2001 From: firelemons Date: Wed, 15 Nov 2023 16:10:12 -0600 Subject: [PATCH] make uncaught exception impossible --- app/javascript/src/case_contact_autosave.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/src/case_contact_autosave.js b/app/javascript/src/case_contact_autosave.js index b84554d283..1ca4bcefb4 100644 --- a/app/javascript/src/case_contact_autosave.js +++ b/app/javascript/src/case_contact_autosave.js @@ -34,7 +34,7 @@ $(() => { // JQuery's callback for the DOM loading input.value = value } - if (!input.checked) { + if (input && !input.checked) { input.checked = checked } })