diff --git a/server/src/workflow-management/classes/Generator.ts b/server/src/workflow-management/classes/Generator.ts index 3d941815..e2faf92c 100644 --- a/server/src/workflow-management/classes/Generator.ts +++ b/server/src/workflow-management/classes/Generator.ts @@ -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;