Skip to content

Commit a7b55e6

Browse files
authored
fix: editor setValue (#71)
1 parent e02df04 commit a7b55e6

File tree

1 file changed

+1
-1
lines changed
  • client/src/components/studio/domain-core/graph-query

1 file changed

+1
-1
lines changed

client/src/components/studio/domain-core/graph-query/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ export const GraphQuery = () => {
503503
item => item.id === activeId,
504504
)?.script;
505505
if (!isEmpty(editor)) {
506-
editor?.editorInstance?.setValue?.(value);
506+
editorRef?.current?.codeEditor?.setValue(value);
507507
}
508508
updateState(draft => {
509509
draft.editorKey = activeId;

0 commit comments

Comments
 (0)