Skip to content
Snippets Groups Projects
Commit d44db819 authored by Ray Schamp's avatar Ray Schamp Committed by GitHub
Browse files

Revert "Filter toolbox to blocks available to the VM" (#229)

parent 8ae968f3
No related branches found
No related tags found
No related merge requests found
...@@ -25,8 +25,6 @@ class Blocks extends React.Component { ...@@ -25,8 +25,6 @@ class Blocks extends React.Component {
componentDidMount () { componentDidMount () {
const workspaceConfig = defaultsDeep({}, Blocks.defaultOptions, this.props.options); const workspaceConfig = defaultsDeep({}, Blocks.defaultOptions, this.props.options);
this.workspace = this.ScratchBlocks.inject(this.blocks, workspaceConfig); this.workspace = this.ScratchBlocks.inject(this.blocks, workspaceConfig);
const filteredToolbox = this.props.vm.filterToolbox(this.workspace.options.languageTree);
this.workspace.updateToolbox(filteredToolbox);
this.attachVM(); this.attachVM();
} }
componentWillUnmount () { componentWillUnmount () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment