mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): Load node types in demo and preview modes (#12048)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
parent
0e26f58ae6
commit
c24602f0cd
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue