Optimize Editor

This commit is contained in:
2024-01-23 16:55:09 +08:00
parent f758485f40
commit ee23f03e4c
2 changed files with 7 additions and 5 deletions

View File

@@ -105,7 +105,7 @@ const CodeEditor = ({
}
}
const handleOnChangeFileContent = _.debounce((code: string = '') => {
const handleOnChangeFileContent = (code: string = '') => {
if (!files[onSelectedFileChange ? propsSelectedFileName : selectedFileName]) {
return
}
@@ -116,7 +116,7 @@ const CodeEditor = ({
onSelectedFileChange ? propsSelectedFileName : selectedFileName,
clone
)
}, 250)
}
return (
<>