mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +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());
|
promises.push(externalSecretsStore.fetchAllSecrets());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nodeTypesStore.allNodeTypes.length === 0) {
|
|
||||||
promises.push(nodeTypesStore.getNodeTypes());
|
|
||||||
}
|
|
||||||
|
|
||||||
return promises;
|
return promises;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
if (nodeTypesStore.allNodeTypes.length === 0) {
|
||||||
|
loadPromises.push(nodeTypesStore.getNodeTypes());
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await Promise.all(loadPromises);
|
await Promise.all(loadPromises);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user