We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19ece29 commit a51bbc3Copy full SHA for a51bbc3
src/useBlocklyWorkspace.ts
@@ -4,7 +4,7 @@ import {UseBlocklyProps} from "./BlocklyWorkspaceProps";
4
5
import debounce from "./debounce";
6
7
-function importFromXml(xml: string, workspace: Workspace, onImportXmlError: (error: any) => void) {
+function importFromXml(xml: string, workspace: Workspace, onImportXmlError?: (error: any) => void) {
8
try {
9
Blockly.Xml.domToWorkspace(Blockly.Xml.textToDom(xml), workspace);
10
return true;
0 commit comments