From 4caacb0de1bcd2cb45f9800e90365b50d1fb2174 Mon Sep 17 00:00:00 2001 From: "Jade (Rose) Rowland" Date: Sun, 23 Nov 2025 19:12:28 -0500 Subject: [PATCH] only eval if script --- website/src/repl/useReplContext.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/src/repl/useReplContext.jsx b/website/src/repl/useReplContext.jsx index ce0820b0..71a22152 100644 --- a/website/src/repl/useReplContext.jsx +++ b/website/src/repl/useReplContext.jsx @@ -47,7 +47,6 @@ if (typeof window !== 'undefined') { multiChannelOrbits: parseBoolean(multiChannelOrbits), }); modulesLoading = loadModules(); - // prebakeScript = evaluate(settingsMap.get().prebakeScript ?? '') presets = prebake(); drawContext = getDrawContext(); clearCanvas = () => drawContext.clearRect(0, 0, drawContext.canvas.height, drawContext.canvas.width); @@ -86,7 +85,9 @@ export function useReplContext() { drawContext, prebake: async () => Promise.all([modulesLoading, presets]).then(() => { - return evaluate(prebakeScript ?? ''); + if (prebakeScript?.length) { + return evaluate(prebakeScript ?? ''); + } }), onUpdateState: (state) => { setReplState({ ...state });