From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/components/workflow/note-node/note-editor/context.tsx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/components/workflow/note-node/note-editor/context.tsx b/app/components/workflow/note-node/note-editor/context.tsx
index 0349746..0d892b3 100644
--- a/app/components/workflow/note-node/note-editor/context.tsx
+++ b/app/components/workflow/note-node/note-editor/context.tsx
@@ -19,13 +19,13 @@
 
 type NoteEditorContextProviderProps = {
   value: string
-  children: React.JSX.Element | string | (React.JSX.Element | string)[]
+  children: JSX.Element | string | (JSX.Element | string)[]
 }
 export const NoteEditorContextProvider = memo(({
   value,
   children,
 }: NoteEditorContextProviderProps) => {
-  const storeRef = useRef<NoteEditorStore | undefined>(undefined)
+  const storeRef = useRef<NoteEditorStore>()
 
   if (!storeRef.current)
     storeRef.current = createNoteEditorStore()
@@ -34,7 +34,7 @@
   try {
     initialValue = JSON.parse(value)
   }
-  catch {
+  catch (e) {
 
   }
 

--
Gitblit v1.8.0