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

Merge pull request #3634 from paulkaplan/fix-block-sharing-promise

Fix adding extension blocks from the backpack
parents d34af4ed aa4108fe
No related branches found
No related tags found
No related merge requests found
...@@ -414,8 +414,8 @@ class Blocks extends React.Component { ...@@ -414,8 +414,8 @@ class Blocks extends React.Component {
handleDrop (dragInfo) { handleDrop (dragInfo) {
fetch(dragInfo.payload.bodyUrl) fetch(dragInfo.payload.bodyUrl)
.then(response => response.json()) .then(response => response.json())
.then(blocks => { .then(blocks => this.props.vm.shareBlocksToTarget(blocks, this.props.vm.editingTarget.id))
this.props.vm.shareBlocksToTarget(blocks, this.props.vm.editingTarget.id); .then(() => {
this.props.vm.refreshWorkspace(); this.props.vm.refreshWorkspace();
}); });
} }
......
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