Skip to content

Commit f750cc8

Browse files
committed
chore: Use null instead of undefined.
1 parent 7456ffb commit f750cc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/navigation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ export class Navigation {
239239
if (!e.workspaceId) {
240240
return;
241241
}
242-
const flyoutWorkspace = Blockly.Workspace.getById(e.workspaceId) as
243-
| Blockly.WorkspaceSvg
244-
| undefined;
242+
const flyoutWorkspace = Blockly.Workspace.getById(
243+
e.workspaceId,
244+
) as Blockly.WorkspaceSvg | null;
245245
const mainWorkspace = flyoutWorkspace?.targetWorkspace;
246246
if (!mainWorkspace) {
247247
return;

0 commit comments

Comments
 (0)