Skip to content

Commit 5620e67

Browse files
committed
Corrected import of blocks: #1935
1 parent 756a820 commit 5620e67

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src-editor/src/Components/BlocklyEditor.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,7 @@ class BlocklyEditor extends React.Component<BlocklyEditorProps, BlocklyEditorSta
481481
window.scripts.loading = true;
482482

483483
const xmlBlocks = BlocklyEditor.Blockly.utils.xml.textToDom(xml);
484-
if (xmlBlocks.nodeName === 'xml') {
485-
for (let b = 0; b < xmlBlocks.children.length; b++) {
486-
BlocklyEditor.Blockly.Xml.appendDomToWorkspace(xmlBlocks, this.blocklyWorkspace);
487-
}
488-
} else {
489-
BlocklyEditor.Blockly.Xml.appendDomToWorkspace(xmlBlocks, this.blocklyWorkspace);
490-
}
484+
BlocklyEditor.Blockly.Xml.appendDomToWorkspace(xmlBlocks, this.blocklyWorkspace);
491485

492486
window.scripts.loading = false;
493487

0 commit comments

Comments
 (0)