fix: cleanup
This commit is contained in:
parent
23f6ff9bc4
commit
04dcbda9a3
2 changed files with 5 additions and 11 deletions
|
|
@ -184,13 +184,11 @@ export function useReplContext() {
|
|||
}, [_settings]);
|
||||
|
||||
useEffect(() => {
|
||||
const prebake = async () =>
|
||||
Promise.all([modulesLoading, presets]).then(() => {
|
||||
if (prebakeScript?.length) {
|
||||
return evaluateUserPrebake(prebakeScript ?? '');
|
||||
}
|
||||
});
|
||||
editorRef.current?.updatePrebake(prebake);
|
||||
Promise.all([modulesLoading, presets]).then(() => {
|
||||
if (prebakeScript?.length) {
|
||||
return evaluateUserPrebake(prebakeScript ?? '');
|
||||
}
|
||||
});
|
||||
}, [prebakeScript]);
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue