From b7a61cbd99b8082949633d665a459e4446d6f357 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Fri, 18 Mar 2022 21:55:51 +0100 Subject: [PATCH] fixes mini repl --- repl/src/useRepl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repl/src/useRepl.ts b/repl/src/useRepl.ts index 5c4ff1d7..09a7b73e 100644 --- a/repl/src/useRepl.ts +++ b/repl/src/useRepl.ts @@ -104,7 +104,7 @@ function useRepl({ tune, defaultSynth, autolink = true, onEvent, onDraw }: any) [pattern] ), onSchedule: useCallback((_events, cycle) => logCycle(_events, cycle), [pattern]), - ready: !!pattern, + ready: !!pattern && !!activeCode, }); const broadcast = usePostMessage(({ data: { from, type } }) => {