🐛 Fix auto refresh on executions list (#1457)

This commit is contained in:
Omar Ajoue 2021-02-18 00:09:39 +01:00 committed by GitHub
parent c811294612
commit 91b715025d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -414,10 +414,11 @@ export default mixins(
if (this.finishedExecutions.length !== 0) { if (this.finishedExecutions.length !== 0) {
firstId = this.finishedExecutions[0].id; firstId = this.finishedExecutions[0].id;
} }
const activeExecutionsPromise: Promise<IExecutionsListResponse> = this.restApi().getPastExecutions({}, 100, undefined, firstId); const filter = this.workflowFilterPast;
const pastExecutionsPromise: Promise<IExecutionsListResponse> = this.restApi().getPastExecutions(filter, this.requestItemsPerRequest, undefined, firstId);
const currentExecutionsPromise: Promise<IExecutionsCurrentSummaryExtended[]> = this.restApi().getCurrentExecutions({}); const currentExecutionsPromise: Promise<IExecutionsCurrentSummaryExtended[]> = this.restApi().getCurrentExecutions({});
const results = await Promise.all([activeExecutionsPromise, currentExecutionsPromise]); const results = await Promise.all([pastExecutionsPromise, currentExecutionsPromise]);
for (const activeExecution of results[1]) { for (const activeExecution of results[1]) {
if (activeExecution.workflowId !== undefined && activeExecution.workflowName === undefined) { if (activeExecution.workflowId !== undefined && activeExecution.workflowName === undefined) {