Skip to content

Commit

Permalink
fix(editor): Cleanup Executions page component (#8053)
Browse files Browse the repository at this point in the history
## Summary
Remove duplicated `created` VUE component lifecycle method
  • Loading branch information
cstuncsik authored Dec 15, 2023
1 parent 439a22d commit 2689c37
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/editor-ui/src/components/ExecutionsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -364,16 +364,14 @@ export default defineComponent({
workflows: [] as IWorkflowShortResponse[],
};
},
created() {
this.autoRefresh = this.autoRefreshEnabled;
},
mounted() {
setPageTitle(`n8n - ${this.pageTitle}`);
void this.handleAutoRefreshToggle();
document.addEventListener('visibilitychange', this.onDocumentVisibilityChange);
},
async created() {
this.autoRefresh = this.autoRefreshEnabled;
await this.loadWorkflows();
void this.externalHooks.run('executionsList.openDialog');
Expand Down Expand Up @@ -945,7 +943,7 @@ export default defineComponent({
}
},
async startAutoRefreshInterval() {
if (this.autoRefresh && this.route.name === VIEWS.WORKFLOW_EXECUTIONS) {
if (this.autoRefresh && this.route.name === VIEWS.EXECUTIONS) {
await this.loadAutoRefresh();
this.autoRefreshTimeout = setTimeout(() => {
void this.startAutoRefreshInterval();
Expand Down

0 comments on commit 2689c37

Please sign in to comment.