From c5d14887d4bec2d0b1cfd3c39a858f13ba2c647f Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Wed, 11 May 2022 21:29:16 +0800 Subject: [PATCH] fix(console): resolve js warning reported in code editor component --- packages/console/src/components/CodeEditor/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/console/src/components/CodeEditor/index.tsx b/packages/console/src/components/CodeEditor/index.tsx index 86b911aed..27e4b5bd6 100644 --- a/packages/console/src/components/CodeEditor/index.tsx +++ b/packages/console/src/components/CodeEditor/index.tsx @@ -29,10 +29,9 @@ const CodeEditor = ({ language, isReadonly = false, value = '', onChange }: Prop data-gramm="false" readOnly={isReadonly} spellCheck="false" + value={value} onChange={handleChange} - > - {value} - + />