From 93584e9892184ddd5ba65c9555919dc8f746f145 Mon Sep 17 00:00:00 2001 From: noneAuth Date: Thu, 21 Mar 2024 15:47:11 +0800 Subject: [PATCH] fix: editor setValue --- client/src/components/studio/domain-core/graph-query/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/studio/domain-core/graph-query/index.tsx b/client/src/components/studio/domain-core/graph-query/index.tsx index 2336c643..c55da5d4 100644 --- a/client/src/components/studio/domain-core/graph-query/index.tsx +++ b/client/src/components/studio/domain-core/graph-query/index.tsx @@ -503,7 +503,7 @@ export const GraphQuery = () => { item => item.id === activeId, )?.script; if (!isEmpty(editor)) { - editor?.editorInstance?.setValue?.(value); + editorRef?.current?.codeEditor?.setValue(value); } updateState(draft => { draft.editorKey = activeId;