Fix tests & a typo

This commit is contained in:
Christopher Willis-Ford 2017-11-03 11:42:20 -07:00
parent 0af3de9bf0
commit c88a8fa55a
5 changed files with 7 additions and 7 deletions
src/serialization

View file

@ -74,7 +74,7 @@ const parseScratchObject = function (object, runtime, extensions) {
}
if (object.hasOwnProperty('blocks')) {
for (const blockId in object.blocks) {
const blockJSON = object.blockType[blockId];
const blockJSON = object.blocks[blockId];
blocks.createBlock(blockJSON);
const dotIndex = blockJSON.opcode.indexOf('.');