Skip to content
Snippets Groups Projects
Commit 9fb23e92 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Fix toolbox refreshing for new variables after switching tabs

parent 46416c35
Branches
Tags
No related merge requests found
......@@ -125,6 +125,8 @@ class Blocks extends React.Component {
if (this.props.isVisible) { // Scripts tab
this.workspace.setVisible(true);
this.props.vm.refreshWorkspace();
// Re-enable toolbox refreshes without causing one. See #updateToolbox for more info.
this.workspace.toolboxRefreshEnabled_ = true;
window.dispatchEvent(new Event('resize'));
} else {
this.workspace.setVisible(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment