mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-28 23:55:16 -04:00
fix: cleanup
This commit is contained in:
@@ -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]);
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user