mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix: fix slow loading times for nodeTypes, node creator vuex reference, and pushConnection in settings views (#4230)
This commit is contained in:
@@ -393,11 +393,16 @@ export default mixins(
|
||||
});
|
||||
},
|
||||
async initialize() {
|
||||
await Promise.all([
|
||||
const loadPromises = [
|
||||
this.$store.dispatch('credentials/fetchAllCredentials'),
|
||||
this.$store.dispatch('credentials/fetchCredentialTypes'),
|
||||
this.$store.dispatch('nodeTypes/getNodeTypes'),
|
||||
]);
|
||||
];
|
||||
|
||||
if (this.$store.getters['nodeTypes/allNodeTypes'].length === 0) {
|
||||
loadPromises.push(this.$store.dispatch('nodeTypes/getNodeTypes'));
|
||||
}
|
||||
|
||||
await Promise.all(loadPromises);
|
||||
|
||||
this.loading = false;
|
||||
this.$nextTick(this.focusSearchInput);
|
||||
|
||||
Reference in New Issue
Block a user