diff --git a/package.json b/package.json index 382a27dd0b4117f685972b643f3c5966da164710..042f14655bd0d0345c0a1910694b9ad8d4ff10a8 100644 --- a/package.json +++ b/package.json @@ -97,8 +97,8 @@ "rimraf": "^2.6.1", "scratch-audio": "0.1.0-prerelease.20180625202813", "scratch-blocks": "0.1.0-prerelease.1531482946", - "scratch-l10n": "3.0.20180703181510", - "scratch-paint": "0.2.0-prerelease.20180712144339", + "scratch-l10n": "3.0.20180712200642", + "scratch-paint": "0.2.0-prerelease.20180712195436", "scratch-render": "0.1.0-prerelease.20180618173030", "scratch-storage": "0.5.1", "scratch-svg-renderer": "0.2.0-prerelease.20180712223402", diff --git a/src/containers/blocks.jsx b/src/containers/blocks.jsx index c81c5d21ad6bc843712795eec0c8d37655db91a0..1de665e33422b5372322ec02018912b18fd8da29 100644 --- a/src/containers/blocks.jsx +++ b/src/containers/blocks.jsx @@ -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 () {