From 4585dcda3ca662a345a94554f48856effc7806ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=83=D0=BB?= Date: Mon, 25 Nov 2024 00:35:31 +0300 Subject: [PATCH] feat: fix build errors --- .../Universe/Graph/Cubes/SelectionDataNodes/index.tsx | 2 +- src/modules/mindset/index.tsx | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/Universe/Graph/Cubes/SelectionDataNodes/index.tsx b/src/components/Universe/Graph/Cubes/SelectionDataNodes/index.tsx index fadc7dae5..e392edd48 100644 --- a/src/components/Universe/Graph/Cubes/SelectionDataNodes/index.tsx +++ b/src/components/Universe/Graph/Cubes/SelectionDataNodes/index.tsx @@ -118,7 +118,7 @@ export const SelectionDataNodes = memo(() => { {selectionGraphData?.nodes.map((node) => ( - + ))} diff --git a/src/modules/mindset/index.tsx b/src/modules/mindset/index.tsx index 73cef2e97..67f1910cf 100644 --- a/src/modules/mindset/index.tsx +++ b/src/modules/mindset/index.tsx @@ -139,11 +139,7 @@ export const MindSet = () => { .map((node) => { const edge = edgesMention.find((ed) => node.ref_id === ed.source) - if (edge) { - return { ...node, start: edge.start } - } - - return null + return { ...node, start: edge?.start || 0 } }) .filter((node) => node)