mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-20 23:07:32 -07: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) {
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue