This error occurs when I try to detach a loop block from an objects block. Below is the code for my objects block:
Has anyone else encountered this issue or can provide insight on how to resolve it?
Thank you in advance for your help!
After upgrading to version 10, I encountered the following error:Uncaught Error: Connection lists did not match in length.This error occurs when I try to detach a loop block from an objects block.
Below is the code for my objects block:
Blockly.Blocks['objects'] = {init: function() {this.appendDummyInput().appendField("object");this.setPreviousStatement(true, null);this.setNextStatement(true, null);this.setColour(230);this.setTooltip('');this.setHelpUrl('');},onchange: function(event) {let previousBlock = this.getPreviousBlock();if (previousBlock && previousBlock.type === 'loop') {this.setNextStatement(false);} else {this.setNextStatement(true, null);}}};
Hi Christopher,
Thank you for your help. I have added the saveExtraState and loadExtraState methods to my objects block as you suggested.
Best regards,
Mia