diff --git a/frontend/stepper/js/BlocklyEditor.tsx b/frontend/stepper/js/BlocklyEditor.tsx index c3e712ad7..08853b278 100644 --- a/frontend/stepper/js/BlocklyEditor.tsx +++ b/frontend/stepper/js/BlocklyEditor.tsx @@ -74,6 +74,10 @@ export const BlocklyEditor = (props: BlocklyEditorProps) => { const resize = () => { log.getLogger('editor').debug('[blockly.editor] resize'); + if (context && context.blocklyHelper) { + context.blocklyHelper.unloadLevel(); + } + onLoad(); }; const onBlocklyEvent = (event) => {