From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +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