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

Revert "Explicitly create variables in the VM"

parent 81eb1caa
Branches
Tags
No related merge requests found
......@@ -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 () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment