From 471d4eb01cfbcd497acedd90a92b4978f4eb6853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=83=D0=BB?= Date: Thu, 19 Dec 2024 18:06:56 +0300 Subject: [PATCH] fix: fix build error --- .../App/SideBar/SelectedNodeView/Default/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/App/SideBar/SelectedNodeView/Default/index.tsx b/src/components/App/SideBar/SelectedNodeView/Default/index.tsx index d3587d77e..efdb4c80a 100644 --- a/src/components/App/SideBar/SelectedNodeView/Default/index.tsx +++ b/src/components/App/SideBar/SelectedNodeView/Default/index.tsx @@ -66,9 +66,10 @@ export const Default = () => { })) .sort((a, b) => a.sequence - b.sequence) .map((i) => response.nodes.find((n) => n.ref_id === i.node)) - .filter((i) => !!i) - setSequencedNodes(nodesWithSequence) + const filteredNodes = nodesWithSequence.filter((i) => !!i) + + setSequencedNodes(filteredNodes as Node[]) } } }