From 1b7db4a9cd6308233a2b1b7af6b54d09a69e788b Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Mon, 10 May 2021 17:39:30 +0530 Subject: [PATCH] Bug fix error handling for unknown elements --- index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.html b/index.html index bac3ebc..41d474b 100644 --- a/index.html +++ b/index.html @@ -10492,7 +10492,7 @@ Bitcoin.Util = { getRef('term_selector').addEventListener('change', e => { const floID = e.detail.value getRef('fund_selector').querySelectorAll('.term-fund__option-group').forEach(option => option.classList.add('hide-completely')) - getRef('fund_selector').querySelector(`.term-fund__option-group[data-flo-id="${floID}"]`).classList.remove('hide-completely') + getRef('fund_selector').querySelector(`.term-fund__option-group[data-flo-id="${floID}"]`)?.classList.remove('hide-completely') }) @@ -10991,7 +10991,6 @@ Bitcoin.Util = { }).catch(error => console.error(error)) } }) - showPage('admin_page')