From ffa5f076423cf2931ffdb44409853c4460022399 Mon Sep 17 00:00:00 2001
From: kj_sh604
Date: Wed, 6 May 2026 21:09:38 -0400
Subject: refactor: vuln fix

---
 packages/excalidraw/components/App.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/excalidraw/components/App.tsx')

diff --git a/packages/excalidraw/components/App.tsx b/packages/excalidraw/components/App.tsx
index dc6d287..cf2ef3c 100644
--- a/packages/excalidraw/components/App.tsx
+++ b/packages/excalidraw/components/App.tsx
@@ -3111,7 +3111,7 @@ class App extends React.Component<AppProps, AppState> {
           const api = await import("@excalidraw/mermaid-to-excalidraw");
 
           try {
-            const { elements: skeletonElements, files } =
+            const { elements: skeletonElements, files = {} } =
               await api.parseMermaidToExcalidraw(data.text);
 
             const elements = convertToExcalidrawElements(skeletonElements, {
-- 
cgit v1.2.3

