diff --git a/web/src/pages/add-knowledge/components/knowledge-graph/util.ts b/web/src/pages/add-knowledge/components/knowledge-graph/util.ts index e0be797f2..8f58fcebc 100644 --- a/web/src/pages/add-knowledge/components/knowledge-graph/util.ts +++ b/web/src/pages/add-knowledge/components/knowledge-graph/util.ts @@ -86,7 +86,9 @@ export const buildNodesAndCombos = (nodes: any[]) => { const nextNodes = nodes.map((x) => { return { ...x, - combo: combos.find((y) => y.data.label === findCombo(x?.communities))?.id, + combo: + combos.find((y) => y.data.label === findCombo(x?.communities))?.id ?? + null, }; });