Skip to content

Commit 76b627c

Browse files
authored
Merge pull request #468 from LLK/revert-390-feature/variable-creation
Revert "Explicitly create variables in the VM"
2 parents 81eb1ca + d9bae29 commit 76b627c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/containers/blocks.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ class Blocks extends React.Component {
150150
if (this.props.vm.editingTarget && !this.state.workspaceMetrics[this.props.vm.editingTarget.id]) {
151151
this.onWorkspaceMetricsChange();
152152
}
153+
153154
this.ScratchBlocks.Events.disable();
154155
this.workspace.clear();
155156

@@ -174,7 +175,6 @@ class Blocks extends React.Component {
174175
}
175176
handlePromptCallback (data) {
176177
this.state.prompt.callback(data);
177-
this.props.vm.createVariable(data);
178178
this.handlePromptClose();
179179
}
180180
handlePromptClose () {

0 commit comments

Comments
 (0)