Tengo un problema al inicializar bloques personalizados
Creé bloques personalizados en bloque para modal
export const ConditionBlocklyBlock: Block[] = [ { type: 'SUM_MAT', message0: '%1 %2 %3', colour: '#F88370', tooltip: 'tooltip', inputsInline: true, args0: [ { type: 'input_value', name: 'first_value' }, { type: 'field_dropdown', name: 'operator', options: [ [ '>', '>' ], [ '>=', '>=' ], [ '<', '<' ], [ '<=', '<=' ], [ '==', '==' ] ] }, { type: 'input_value', name: 'second_value' } ], output: "Boolean" }, { type: 'swapList', message0: '%1 %2 %3', colour: '#F88370', tooltip: 'tooltip', inputsInline: true, args0: [ { type: 'input_value', name: 'first_value', check: 'Boolean' }, { type: 'field_dropdown', name: 'logical_operator', options: [ [ 'AND', 'AND' ], [ 'OR', 'OR' ], ] }, { type: 'input_value', name: 'second_value', check: 'Boolean' } ], output: 'Boolean' } ]; const conditionBlocks: Block[] = ConditionBlocklyBlock; Blockly.defineBlocksWithJsonArray(conditionBlocks);Cuando se abre el modal, el bloque se inicializa.
La primera vez que se abre es normal, pero a partir de la segunda vez aparece el siguiente log.
Block definition #77 in JSON array overwrites prior definition of "SUM". Block definition #78 in JSON array overwrites prior definition of "SUM-MAT". Block definition #79 in JSON array overwrites prior definition of "SUM_MV".Por favor, dame un consejo.