mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(editor): Load node types in demo and preview modes (#12048)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -272,13 +272,13 @@ async function initializeData() {
|
||||
promises.push(externalSecretsStore.fetchAllSecrets());
|
||||
}
|
||||
|
||||
if (nodeTypesStore.allNodeTypes.length === 0) {
|
||||
promises.push(nodeTypesStore.getNodeTypes());
|
||||
}
|
||||
|
||||
return promises;
|
||||
})();
|
||||
|
||||
if (nodeTypesStore.allNodeTypes.length === 0) {
|
||||
loadPromises.push(nodeTypesStore.getNodeTypes());
|
||||
}
|
||||
|
||||
try {
|
||||
await Promise.all(loadPromises);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user