Revert "Explicitly create variables in the VM"

This commit is contained in:
Paul Kaplan authored and GitHub committed 2017-06-22 11:52:36 -04:00
1 parent 81eb1caaed
commit d9bae290d6
1 file changed
+1 -1
+1 -1
View File
@@ -150,6 +150,7 @@ class Blocks extends React.Component {
if (this.props.vm.editingTarget && !this.state.workspaceMetrics[this.props.vm.editingTarget.id]) {
this.onWorkspaceMetricsChange();
}
this.ScratchBlocks.Events.disable();
this.workspace.clear();
@@ -174,7 +175,6 @@ class Blocks extends React.Component {
}
handlePromptCallback (data) {
this.state.prompt.callback(data);
this.props.vm.createVariable(data);
this.handlePromptClose();
}
handlePromptClose () {