feat: update pairin worflow

This commit is contained in:
karishmas6
2024-06-08 00:16:51 +05:30
parent 5ab1f0ce27
commit 86ffa782a1

View File

@@ -343,5 +343,14 @@ export class WorkflowGenerator {
}
};
public updatePairInWorkflow = (index: number, pair: WhereWhatPair) => {
if (index <= this.workflowRecord.workflow.length && index >= 0) {
this.workflowRecord.workflow[this.workflowRecord.workflow.length - (index + 1)] = pair;
} else {
logger.log('error', `Update pair ${index}: Index out of range.`);
}
};
}