mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
🐛 Fix auto refresh on executions list (#1457)
This commit is contained in:
parent
c811294612
commit
91b715025d
|
@ -414,10 +414,11 @@ export default mixins(
|
|||
if (this.finishedExecutions.length !== 0) {
|
||||
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 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) {
|
||||
|
|
Loading…
Reference in a new issue