feat: check if pair over-shadowed by current worflow pair
This commit is contained in:
@@ -555,4 +555,27 @@ export class WorkflowGenerator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private IsOverShadowingAction = async (pair: WhereWhatPair, page: Page) => {
|
||||||
|
type possibleOverShadow = {
|
||||||
|
index: number;
|
||||||
|
isOverShadowing: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
const possibleOverShadow: possibleOverShadow[] = [];
|
||||||
|
const haveSameUrl = this.workflowRecord.workflow
|
||||||
|
.filter((p, index) => {
|
||||||
|
if (p.where.url === pair.where.url) {
|
||||||
|
possibleOverShadow.push({index: index, isOverShadowing: false});
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
return possibleOverShadow;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user