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

Merge branch 'develop' into greenkeeper/scratch-blocks-0.1.0-prerelease.1531482946

parents 58587ed2 d5f1862a
No related branches found
No related tags found
No related merge requests found
......@@ -366,9 +366,10 @@ class Blocks extends React.Component {
this.ScratchBlocks.refreshStatusButtons(this.workspace);
}
handlePromptCallback (input, optionSelection) {
this.state.prompt.callback(input, optionSelection,
(optionSelection === 'local') ? [] :
this.props.vm.runtime.getAllVarNamesOfType(this.state.prompt.varType));
this.state.prompt.callback(
input,
this.props.vm.runtime.getAllVarNamesOfType(this.state.prompt.varType),
optionSelection);
this.handlePromptClose();
}
handlePromptClose () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment