Revert "Explicitly create variables in the VM"
This commit is contained in:
1 parent
81eb1caaed
commit
d9bae290d6
1 file changed
+1
-1
@@ -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 () {
|
||||
|
||||
Reference in new issue
Block a user