From c5b9137f12ea372d9196e41ffffc91eee7ad772e Mon Sep 17 00:00:00 2001
From: Vince Imbat <96913392+vinceimbat@users.noreply.github.com>
Date: Sat, 23 Sep 2023 02:39:02 +0000
Subject: [PATCH] docs: Adds Vince Imbat to showcase (#501)

---
 quartz/components/scripts/explorer.inline.ts |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/quartz/components/scripts/explorer.inline.ts b/quartz/components/scripts/explorer.inline.ts
index 2b7df7d..9fe1865 100644
--- a/quartz/components/scripts/explorer.inline.ts
+++ b/quartz/components/scripts/explorer.inline.ts
@@ -113,9 +113,11 @@
       ) as HTMLElement
 
       // Get corresponding content <ul> tag and set state
-      const folderUL = folderLi.parentElement?.nextElementSibling
-      if (folderUL) {
-        setFolderState(folderUL as HTMLElement, folderUl.collapsed)
+      if (folderLi) {
+        const folderUL = folderLi.parentElement?.nextElementSibling
+        if (folderUL) {
+          setFolderState(folderUL as HTMLElement, folderUl.collapsed)
+        }
       }
     })
   } else {

--
Gitblit v1.10.0