feat: update pairin worflow
This commit is contained in:
@@ -344,4 +344,13 @@ 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