Skip to content
Snippets Groups Projects
Unverified Commit fe0c5d53 authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub
Browse files

Merge pull request #4467 from paulkaplan/fix-backpack-code-updating

Call updateToolbox after adding new blocks from the backpack.
parents fcf0f4e3 327eb91f
No related branches found
No related tags found
No related merge requests found
...@@ -455,6 +455,7 @@ class Blocks extends React.Component { ...@@ -455,6 +455,7 @@ class Blocks extends React.Component {
.then(blocks => this.props.vm.shareBlocksToTarget(blocks, this.props.vm.editingTarget.id)) .then(blocks => this.props.vm.shareBlocksToTarget(blocks, this.props.vm.editingTarget.id))
.then(() => { .then(() => {
this.props.vm.refreshWorkspace(); this.props.vm.refreshWorkspace();
this.updateToolbox(); // To show new variables/custom blocks
}); });
} }
render () { render () {
......
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