From 91b715025d01f46b08b74a91f5dc8348f362571d Mon Sep 17 00:00:00 2001 From: Omar Ajoue Date: Thu, 18 Feb 2021 00:09:39 +0100 Subject: [PATCH] :bug: Fix auto refresh on executions list (#1457) --- packages/editor-ui/src/components/ExecutionsList.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/components/ExecutionsList.vue b/packages/editor-ui/src/components/ExecutionsList.vue index e07b018981..da18f3f208 100644 --- a/packages/editor-ui/src/components/ExecutionsList.vue +++ b/packages/editor-ui/src/components/ExecutionsList.vue @@ -414,10 +414,11 @@ export default mixins( if (this.finishedExecutions.length !== 0) { firstId = this.finishedExecutions[0].id; } - const activeExecutionsPromise: Promise = this.restApi().getPastExecutions({}, 100, undefined, firstId); + const filter = this.workflowFilterPast; + const pastExecutionsPromise: Promise = this.restApi().getPastExecutions(filter, this.requestItemsPerRequest, undefined, firstId); const currentExecutionsPromise: Promise = this.restApi().getCurrentExecutions({}); - const results = await Promise.all([activeExecutionsPromise, currentExecutionsPromise]); + const results = await Promise.all([pastExecutionsPromise, currentExecutionsPromise]); for (const activeExecution of results[1]) { if (activeExecution.workflowId !== undefined && activeExecution.workflowName === undefined) {