From 7739a51da5fed860d02dcbaebdec4a8b549015f1 Mon Sep 17 00:00:00 2001 From: GowthamKumarMSF4219 Date: Fri, 3 Jan 2025 15:56:36 +0530 Subject: [PATCH] Feature(402675):missed commit --- .../workflow-sidebar/workflow-sidebar.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/components/workflow-sidebar/workflow-sidebar.component.ts b/src/app/components/workflow-sidebar/workflow-sidebar.component.ts index f80fd5c..9bc455d 100644 --- a/src/app/components/workflow-sidebar/workflow-sidebar.component.ts +++ b/src/app/components/workflow-sidebar/workflow-sidebar.component.ts @@ -153,7 +153,6 @@ export class WorkflowSidebarComponent { } // Add and Save option addOrUpdateSaveOption(label: string, value: string, description: string | null, labelInput: HTMLInputElement, valueInput: HTMLInputElement, descriptionInput: HTMLInputElement | null): void { - value = (this.nodeBlockType == ChatWorkflowBlockTypeEnum.BranchOnPickerInput) ? uuidv1() : value; const option = { label: label.trim(), value: value.trim(), description }; if(this.isEditButton){ this.options[this.editIndex] = option; @@ -170,6 +169,7 @@ export class WorkflowSidebarComponent { } } else { + value = (this.nodeBlockType == ChatWorkflowBlockTypeEnum.BranchOnPickerInput) ? uuidv1() : value; this.options.push({ label, value, description }); this.addOptions.push({ label, value, description }); } @@ -262,6 +262,9 @@ export class WorkflowSidebarComponent { this.sideBarDescription = ""; this.sideBarPlaceholder = ""; this.options = []; + this.addOptions = []; + this.editOptions = []; + this.deleteOptions = []; this.fieldOptionMinValue = 0; this.fieldOptionMaxValue = 0; this.fieldOptionRegexValue = "";