From 13179656821f6b5a3b8a6d26d24610095038f77d Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Tue, 3 Aug 2021 19:05:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=84=9A=E6=9C=AC=E7=AE=A1?= =?UTF-8?q?=E7=90=86editorRef=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/script/editModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/script/editModal.tsx b/src/pages/script/editModal.tsx index 4c450c8f..89a5fb81 100644 --- a/src/pages/script/editModal.tsx +++ b/src/pages/script/editModal.tsx @@ -179,7 +179,7 @@ const EditModal = ({ setSaveModalVisible(false); }} isNewFile={isNewFile} - file={{ content: editorRef.current.getValue(1), filename: fileName }} + file={{ content: editorRef.current && editorRef.current.getValue(1), filename: fileName }} />