fix(editor): Only fetch new versions at app launch (#5647)

only call nextVersions once
This commit is contained in:
romainminaud
2023-03-09 11:01:30 +01:00
committed by GitHub
parent 6500e985ee
commit 5b9c521d04
3 changed files with 4 additions and 7 deletions

View File

@@ -46,8 +46,9 @@ import { useRootStore } from './stores/n8nRootStore';
import { useTemplatesStore } from './stores/templates';
import { useNodeTypesStore } from './stores/nodeTypes';
import { historyHelper } from '@/mixins/history';
import { newVersions } from '@/mixins/newVersions';
export default mixins(showMessage, userHelpers, restApi, historyHelper).extend({
export default mixins(newVersions, showMessage, userHelpers, restApi, historyHelper).extend({
name: 'App',
components: {
LoadingView,
@@ -186,6 +187,7 @@ export default mixins(showMessage, userHelpers, restApi, historyHelper).extend({
this.logHiringBanner();
this.authenticate();
this.redirectIfNecessary();
this.checkForNewVersions();
this.loading = false;