From 327eb91fc04548b72114bc0143461105853725d4 Mon Sep 17 00:00:00 2001 From: Paul Kaplan <pkaplan@media.mit.edu> Date: Thu, 31 Jan 2019 16:42:56 -0500 Subject: [PATCH] Call updateToolbox after adding new blocks from the backpack. This fixes the issue where you could not see any new variables or custom block callers, as well as fixing the issue where the toolbox did not update from then on. --- src/containers/blocks.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/containers/blocks.jsx b/src/containers/blocks.jsx index 98a01db1b..6368341f9 100644 --- a/src/containers/blocks.jsx +++ b/src/containers/blocks.jsx @@ -454,6 +454,7 @@ class Blocks extends React.Component { .then(blocks => this.props.vm.shareBlocksToTarget(blocks, this.props.vm.editingTarget.id)) .then(() => { this.props.vm.refreshWorkspace(); + this.updateToolbox(); // To show new variables/custom blocks }); } render () { -- GitLab