mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
修复脚本管理editorRef错误
This commit is contained in:
1 parent
9e4b41ce48
commit
6ed4aa6bf4
1 file changed
+1
-1
@@ -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 }}
|
||||
/>
|
||||
<SettingModal
|
||||
visible={settingModalVisible}
|
||||
|
||||
Reference in new issue
Block a user