Skip to content

Commit

Permalink
Provide a from target id when sharing blocks to another target so tha…
Browse files Browse the repository at this point in the history
…t variable conflicts can be resolved.
  • Loading branch information
kchadha committed Jul 13, 2018
1 parent 02f7042 commit 07a679d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/target-pane.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class TargetPane extends React.Component {
}
handleBlockDragEnd (blocks) {
if (this.props.hoveredTarget.sprite && this.props.hoveredTarget.sprite !== this.props.editingTarget) {
this.props.vm.shareBlocksToTarget(blocks, this.props.hoveredTarget.sprite);
this.props.vm.shareBlocksToTarget(blocks, this.props.hoveredTarget.sprite, this.props.editingTarget);
this.props.onReceivedBlocks(true);
}
}
Expand Down

0 comments on commit 07a679d

Please sign in to comment.