mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix(editor): Handle if nodes are undefined/null in InputNodeSelect (#14860)
This commit is contained in:
@@ -35,9 +35,10 @@ const selectedInputNodeType = computed(() => {
|
|||||||
return nodeTypesStore.getNodeType(node.type, node.typeVersion);
|
return nodeTypesStore.getNodeType(node.type, node.typeVersion);
|
||||||
});
|
});
|
||||||
|
|
||||||
const inputNodes = computed(() =>
|
const inputNodes = computed(
|
||||||
|
() =>
|
||||||
props.nodes
|
props.nodes
|
||||||
.map((node) => {
|
?.map((node) => {
|
||||||
const fullNode = workflowsStore.getNodeByName(node.name);
|
const fullNode = workflowsStore.getNodeByName(node.name);
|
||||||
if (!fullNode) return null;
|
if (!fullNode) return null;
|
||||||
|
|
||||||
@@ -47,7 +48,7 @@ const inputNodes = computed(() =>
|
|||||||
depth: node.depth,
|
depth: node.depth,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.filter(isPresent),
|
.filter(isPresent) ?? [],
|
||||||
);
|
);
|
||||||
|
|
||||||
const activeNode = computed(() => ndvStore.activeNode);
|
const activeNode = computed(() => ndvStore.activeNode);
|
||||||
|
|||||||
Reference in New Issue
Block a user