feat: update pairin worflow
This commit is contained in:
@@ -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.`);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user