Commit 4989fcb9 authored by Evan W. Patton's avatar Evan W. Patton Committed by Jeffrey Schiller

Reload typeblock when component added

Fixes #1002

Change-Id: If3e9612736cf8b827d47b6738a4d979fd0aaff3e
parent ccd4bc04
...@@ -318,9 +318,8 @@ Blockly.WorkspaceSvg.prototype.getProcedureDatabase = function() { ...@@ -318,9 +318,8 @@ Blockly.WorkspaceSvg.prototype.getProcedureDatabase = function() {
*/ */
Blockly.WorkspaceSvg.prototype.addComponent = function(uid, instanceName, typeName) { Blockly.WorkspaceSvg.prototype.addComponent = function(uid, instanceName, typeName) {
if (this.componentDb_.addInstance(uid, instanceName, typeName)) { if (this.componentDb_.addInstance(uid, instanceName, typeName)) {
return this;
}
this.typeBlock_.needsReload.components = true; this.typeBlock_.needsReload.components = true;
}
return this; return this;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment