From 5921bec5f4ed4f49d7c6c1eb6cc521f2931b4e20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Bj=C3=B6rk?= Date: Thu, 5 Feb 2026 16:35:36 +0100 Subject: [PATCH] Set active pattern to viewing on init --- website/src/repl/useReplContext.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/website/src/repl/useReplContext.jsx b/website/src/repl/useReplContext.jsx index fc4ab6e10..65bd4c2d5 100644 --- a/website/src/repl/useReplContext.jsx +++ b/website/src/repl/useReplContext.jsx @@ -71,6 +71,7 @@ export function useReplContext() { const defaultOutput = shouldUseWebaudio ? webaudioOutput : superdirtOutput; const getTime = shouldUseWebaudio ? getAudioContextCurrentTime : getPerformanceTimeSeconds; const init = useCallback(() => { + setActivePattern(getViewingPatternData().id); const drawTime = [-2, 2]; const drawContext = getDrawContext(); const editor = new StrudelMirror({