Skip to content

Commit

Permalink
feat: fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Rassl committed Nov 24, 2024
1 parent dfb3368 commit 4585dcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const SelectionDataNodes = memo(() => {
<group ref={groupRef} name="simulation-2d-group">
{selectionGraphData?.nodes.map((node) => (
<mesh key={node.ref_id}>
<TextNode key={node.ref_id || node.id} hide ignoreDistance isHovered={false} node={node} />
<TextNode key={node.ref_id || node.id} hide ignoreDistance node={node} />
</mesh>
))}
</group>
Expand Down
6 changes: 1 addition & 5 deletions src/modules/mindset/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4585dcd

Please sign in to comment.