mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-13 06:38:31 +00:00
fix: remove loading state on eval error
This commit is contained in:
parent
e0c5566f35
commit
30d1f423cb
@ -123,6 +123,9 @@ export function Repl({ embedded = false }) {
|
||||
setLatestCode(code);
|
||||
window.location.hash = '#' + encodeURIComponent(btoa(code));
|
||||
},
|
||||
onEvalError: (err) => {
|
||||
setPending(false);
|
||||
},
|
||||
onToggle: (play) => !play && cleanupDraw(false),
|
||||
drawContext,
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user