fix(editor): Cleanup Executions page component (#8053)

## Summary
Remove duplicated `created` VUE component lifecycle method
This commit is contained in:
Csaba Tuncsik 2023-12-15 18:18:25 +01:00 committed by GitHub
parent 439a22d68f
commit 2689c37e87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -364,9 +364,6 @@ export default defineComponent({
workflows: [] as IWorkflowShortResponse[],
};
},
created() {
this.autoRefresh = this.autoRefreshEnabled;
},
mounted() {
setPageTitle(`n8n - ${this.pageTitle}`);
@ -374,6 +371,7 @@ export default defineComponent({
document.addEventListener('visibilitychange', this.onDocumentVisibilityChange);
},
async created() {
this.autoRefresh = this.autoRefreshEnabled;
await this.loadWorkflows();
void this.externalHooks.run('executionsList.openDialog');
@ -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();