Skip to content

Commit

Permalink
Merge pull request #2145 from stakwork/bugfix/single-node-selected-view
Browse files Browse the repository at this point in the history
feat: fixed selection view for single node
  • Loading branch information
Rassl authored Sep 16, 2024
2 parents e97f158 + 5c9a0c6 commit c89bda1
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)

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

0 comments on commit c89bda1

Please sign in to comment.