Skip to content

Commit

Permalink
feat: fixed selection view for single node
Browse files Browse the repository at this point in the history
  • Loading branch information
Rassl committed Sep 16, 2024
1 parent 7579eb6 commit 5c9a0c6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const SelectionDataNodes = memo(() => {
const structuredNodes = structuredClone(dataInitial?.nodes || [])
const structuredLinks = structuredClone(dataInitial?.links || [])

if (prevNodesLength === structuredNodes.length || !selectedNodeRelativeIds.length) {
if (prevNodesLength === structuredNodes.length) {
return
}

Expand Down Expand Up @@ -101,6 +101,8 @@ export const SelectionDataNodes = memo(() => {
})
}, [simulation2d])

console.log(selectionGraphData.nodes)

Check warning on line 104 in src/components/Universe/Graph/Cubes/SelectionDataNodes/index.tsx

View workflow job for this annotation

GitHub Actions / eslint-run

Unexpected console statement

Check warning on line 104 in src/components/Universe/Graph/Cubes/SelectionDataNodes/index.tsx

View workflow job for this annotation

GitHub Actions / cypress-run

Unexpected console statement

return (
<>
<group ref={groupRef} name="simulation-2d-group">
Expand Down

0 comments on commit 5c9a0c6

Please sign in to comment.