diff --git a/src/serialization/sb3.js b/src/serialization/sb3.js index 145ee7200..16ab90015 100644 --- a/src/serialization/sb3.js +++ b/src/serialization/sb3.js @@ -690,6 +690,7 @@ const deserializeInputs = function (inputs, parentId, blocks) { for (const inputName in inputs) { if (!inputs.hasOwnProperty(inputName)) continue; const inputDescArr = inputs[inputName]; + if (!Array.isArray(inputDescArr)) continue; let block = null; let shadow = null; const blockShadowInfo = inputDescArr[0]; @@ -723,6 +724,7 @@ const deserializeFields = function (fields) { for (const fieldName in fields) { if (!fields.hasOwnProperty(fieldName)) continue; const fieldDescArr = fields[fieldName]; + if (!Array.isArray(fieldDescArr)) continue; obj[fieldName] = { name: fieldName, value: fieldDescArr[0]