Skip to content

Commit

Permalink
Feature(402675):missed commit
Browse files Browse the repository at this point in the history
  • Loading branch information
GowthamKumarMVS committed Jan 3, 2025
1 parent e9597b7 commit 7739a51
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 });
}
Expand Down Expand Up @@ -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 = "";
Expand Down

0 comments on commit 7739a51

Please sign in to comment.