wwf
2 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
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) {
  }