From 4a6d4399d1c5d41f2632deb08e7badc59aae22b2 Mon Sep 17 00:00:00 2001 From: satya verma <52845970+devbysn@users.noreply.github.com> Date: Thu, 21 Sep 2023 08:34:24 -0400 Subject: [PATCH] fix: incorrect blockchange firing (#7492) * BlockChange event disabled * BlockChange event disabled * executed command (npm run format) --- core/block.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/block.ts b/core/block.ts index 25856787440..927d74b0c04 100644 --- a/core/block.ts +++ b/core/block.ts @@ -1672,8 +1672,11 @@ export class Block implements IASTNodeLocation, IDeletable { } if (json['inputsInline'] !== undefined) { + eventUtils.disable(); this.setInputsInline(json['inputsInline']); + eventUtils.enable(); } + // Set output and previous/next connections. if (json['output'] !== undefined) { this.setOutput(true, json['output']);