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[]) } } }