From 9555407f65097cfb244d9994c605a7b98765a9a6 Mon Sep 17 00:00:00 2001
From: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Date: Tue, 30 Jan 2024 00:26:47 +0000
Subject: [PATCH] fix(type): make sure dispatchEvent also accept UIEvent (#760)

---
 quartz/components/Explorer.tsx |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/quartz/components/Explorer.tsx b/quartz/components/Explorer.tsx
index e3ed9b1..fdfff23 100644
--- a/quartz/components/Explorer.tsx
+++ b/quartz/components/Explorer.tsx
@@ -69,9 +69,8 @@
     }
 
     // Get all folders of tree. Initialize with collapsed state
-    const folders = fileTree.getFolderPaths(opts.folderDefaultState === "collapsed")
-
     // Stringify to pass json tree as data attribute ([data-tree])
+    const folders = fileTree.getFolderPaths(opts.folderDefaultState === "collapsed")
     jsonTree = JSON.stringify(folders)
   }
 

--
Gitblit v1.10.0