chore: describe updatePairInWokflow

This commit is contained in:
karishmas6
2024-06-08 00:17:10 +05:30
parent 86ffa782a1
commit 4e175de94a

View File

@@ -343,7 +343,12 @@ export class WorkflowGenerator {
}
};
/**
* Updates a pair in the currently generated workflow.
* @param index The index of the pair to be updated.
* @param pair The pair to be used as a replacement.
* @returns void
*/
public updatePairInWorkflow = (index: number, pair: WhereWhatPair) => {
if (index <= this.workflowRecord.workflow.length && index >= 0) {
this.workflowRecord.workflow[this.workflowRecord.workflow.length - (index + 1)] = pair;