We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df1b1cc commit 4a5d535Copy full SHA for 4a5d535
src/layout.ts
@@ -54,9 +54,10 @@ export class BlocklyLayout extends PanelLayout {
54
}
55
56
set workspace(workspace: PartialJSONValue) {
57
+ const data = workspace === null ? { variables: [] } : workspace;
58
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
59
// @ts-ignore
- Blockly.serialization.workspaces.load(workspace, this._workspace);
60
+ Blockly.serialization.workspaces.load(data, this._workspace);
61
62
63
/**
0 commit comments