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 da997e7 commit 7456ffbCopy full SHA for 7456ffb
src/navigation.ts
@@ -239,10 +239,10 @@ export class Navigation {
239
if (!e.workspaceId) {
240
return;
241
}
242
- const flyoutWorkspace = Blockly.Workspace.getById(
243
- e.workspaceId,
244
- ) as Blockly.WorkspaceSvg;
245
- const mainWorkspace = flyoutWorkspace.targetWorkspace;
+ const flyoutWorkspace = Blockly.Workspace.getById(e.workspaceId) as
+ | Blockly.WorkspaceSvg
+ | undefined;
+ const mainWorkspace = flyoutWorkspace?.targetWorkspace;
246
if (!mainWorkspace) {
247
248
0 commit comments