From 96dddf12e1561935fa191e55baa950c207796e83 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Mon, 23 Jan 2023 14:28:59 +0100 Subject: [PATCH] fix(editor): Remove infinite loading in not found workflow level execution (#5174) fix(editor): Getting rid of infinite loading in workflow level execution view --- .../src/components/ExecutionsView/ExecutionsList.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/editor-ui/src/components/ExecutionsView/ExecutionsList.vue b/packages/editor-ui/src/components/ExecutionsView/ExecutionsList.vue index 70b3206c4..3e2653797 100644 --- a/packages/editor-ui/src/components/ExecutionsView/ExecutionsList.vue +++ b/packages/editor-ui/src/components/ExecutionsView/ExecutionsList.vue @@ -84,13 +84,12 @@ export default mixins( computed: { ...mapStores(useTagsStore, useNodeTypesStore, useSettingsStore, useUIStore, useWorkflowsStore), hidePreview(): boolean { - const nothingToShow = this.executions.length === 0 && this.filterApplied; const activeNotPresent = this.filterApplied && (this.executions as IExecutionsSummary[]).find( (ex) => ex.id === this.activeExecution.id, ) === undefined; - return this.loading || nothingToShow || activeNotPresent; + return this.loading || !this.executions.length || activeNotPresent; }, filterApplied(): boolean { return this.filter.status !== ''; @@ -393,9 +392,7 @@ export default mixins( return []; } try { - const executions: IExecutionsSummary[] = - await this.workflowsStore.loadCurrentWorkflowExecutions(this.filter); - return executions; + return await this.workflowsStore.loadCurrentWorkflowExecutions(this.filter); } catch (error) { this.$showError(error, this.$locale.baseText('executionsList.showError.refreshData.title')); return [];