Skip to content

Commit a357558

Browse files
authored
fix incorrect 'could not filter tutorial blocks, displaying full toolbox' warning (microsoft#11528)
1 parent acc5fd5 commit a357558

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎webapp/src/blocks.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,7 @@ export class Editor extends toolboxeditor.ToolboxEditor {
18971897
colour: c.color,
18981898
contents: [] as Blockly.utils.toolbox.ToolboxItemInfo[]
18991899
}));
1900-
(Blockly.getMainWorkspace() as Blockly.WorkspaceSvg).getToolbox().render({contents: allCategoriesToToolboxItemInfo});
1900+
this.editor.getToolbox().render({contents: allCategoriesToToolboxItemInfo});
19011901
} else {
19021902
this.showFlyoutOnlyToolbox();
19031903
}

0 commit comments

Comments
 (0)