From a16017241b00cc4461be640acb83a120c6c78806 Mon Sep 17 00:00:00 2001 From: Akansha Sakhre Date: Wed, 10 Jul 2024 22:19:26 +0530 Subject: [PATCH] fixed edge case in labels --- package.json | 2 +- .../flow/actions/sendinteractivemsg/SendInteractiveMsgForm.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3aeadde50..cda91fed7 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@glific/flow-editor", "license": "AGPL-3.0", "repository": "git://github.com/glific/floweditor.git", - "version": "1.26.3-8", + "version": "1.26.3-9", "description": "'Standalone flow editing tool designed for use within the Glific suite of messaging tools'", "browser": "umd/flow-editor.min.js", "unpkg": "umd/flow-editor.min.js", diff --git a/src/components/flow/actions/sendinteractivemsg/SendInteractiveMsgForm.tsx b/src/components/flow/actions/sendinteractivemsg/SendInteractiveMsgForm.tsx index 05ab8a0bf..3abe48e6e 100644 --- a/src/components/flow/actions/sendinteractivemsg/SendInteractiveMsgForm.tsx +++ b/src/components/flow/actions/sendinteractivemsg/SendInteractiveMsgForm.tsx @@ -149,7 +149,7 @@ export default class SendMsgForm extends React.Component< if ( (this.props.nodeSettings.originalNode.ghost || this.props.nodeSettings.originalNode.node.exits[0].destination_uuid) && - interactiveMessageId !== originalAction.id + (!originalAction || interactiveMessageId !== originalAction.id) ) { this.props.resetNodeEditing(); this.props.updateRouter(