From 409a43851082250ae5aab2e1a945c20e27d774a6 Mon Sep 17 00:00:00 2001 From: Arturo Date: Sat, 27 Nov 2021 01:12:13 -0500 Subject: [PATCH] reminder modal --- src/ui/EditTask.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/EditTask.svelte b/src/ui/EditTask.svelte index b2722e5fbb..e806d9eff7 100644 --- a/src/ui/EditTask.svelte +++ b/src/ui/EditTask.svelte @@ -180,7 +180,9 @@ var elem = document.getElementById('task-modal-reminder'); if (elem) { - elem.parentNode.removeChild(elem); + if (elem.parentNode) { + elem.parentNode.removeChild(elem); + } } } setTimeout(() => {