mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
🐛 Fix auto refresh on executions list (#1457)
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user