Skip to content

Commit 78c4e2e

Browse files
gonfunkocwillisf
authored andcommitted
fix: use serialization wrapper (#32)
1 parent 198e941 commit 78c4e2e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/scratch-gui/src/containers/blocks.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,10 @@ class Blocks extends React.Component {
431431
this.workspace.removeChangeListener(this.toolboxUpdateChangeListener);
432432
const dom = this.ScratchBlocks.utils.xml.textToDom(data.xml);
433433
try {
434-
this.ScratchBlocks.Xml.clearWorkspaceAndLoadFromXml(dom, this.workspace);
434+
this.ScratchBlocks.clearWorkspaceAndLoadFromXml(
435+
dom,
436+
this.workspace
437+
);
435438
} catch (error) {
436439
// The workspace is likely incomplete. What did update should be
437440
// functional.

0 commit comments

Comments
 (0)