mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix: Do not wait for community nodes to load (#18628)
Co-authored-by: Elias Meire <elsmr@users.noreply.github.com>
This commit is contained in:
@@ -339,8 +339,6 @@ export const useNodeTypesStore = defineStore(STORES.NODE_TYPES, () => {
|
||||
const getNodeTypes = async () => {
|
||||
const nodeTypes = await nodeTypesApi.getNodeTypes(rootStore.baseUrl);
|
||||
|
||||
await fetchCommunityNodePreviews();
|
||||
|
||||
if (nodeTypes.length) {
|
||||
setNodeTypes(nodeTypes);
|
||||
}
|
||||
@@ -440,6 +438,7 @@ export const useNodeTypesStore = defineStore(STORES.NODE_TYPES, () => {
|
||||
isConfigurableNode,
|
||||
communityNodesAndActions,
|
||||
communityNodeType,
|
||||
fetchCommunityNodePreviews,
|
||||
getResourceMapperFields,
|
||||
getLocalResourceMapperFields,
|
||||
getNodeParameterActionResult,
|
||||
|
||||
@@ -343,6 +343,8 @@ async function initializeData() {
|
||||
|
||||
try {
|
||||
await Promise.all(loadPromises);
|
||||
//We don't need to await this as community node previews are not critical and needed only in nodes search panel
|
||||
void nodeTypesStore.fetchCommunityNodePreviews();
|
||||
} catch (error) {
|
||||
toast.showError(
|
||||
error,
|
||||
|
||||
Reference in New Issue
Block a user