Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

233
Views
Cómo borrar bloques personalizados de bloques predefinidos en Angular

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".

JsonOverwritesLog

Por favor, dame un consejo.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!