修复脚本管理editorRef错误

This commit is contained in:
hanhh 2021-08-03 19:05:01 +08:00
parent 9e4b41ce48
commit 6ed4aa6bf4

View File

@ -179,7 +179,7 @@ const EditModal = ({
setSaveModalVisible(false); setSaveModalVisible(false);
}} }}
isNewFile={isNewFile} isNewFile={isNewFile}
file={{ content: editorRef.current.getValue(1), filename: fileName }} file={{ content: editorRef.current && editorRef.current.getValue(1), filename: fileName }}
/> />
<SettingModal <SettingModal
visible={settingModalVisible} visible={settingModalVisible}