fix: only initSvg on rendered blocks (#8215)

This commit is contained in:
Maribeth Bottorff
2024-06-13 08:13:17 -07:00
committed by GitHub
parent e455a94ae3
commit 24fe13f0c9

View File

@@ -85,8 +85,8 @@ Blockly.Blocks['factory_base'] = {
var type = this.workspace.newBlock('type_null');
type.setShadow(true);
type.outputConnection.connect(this.getInput(outputType).connection);
type.initSvg();
if (this.rendered) {
type.initSvg();
type.render();
}
},