Skip to content

Commit

Permalink
feat(graph): update graph package; use node.parent as label
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Sep 24, 2024
1 parent f8bc5ba commit b2d2560
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
11 changes: 3 additions & 8 deletions graph/client/src/app/feature-projects/project-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,9 @@ function CompositeNodeListItem({
const routeConstructor = useRouteConstructor();
const navigate = useNavigate();

const label = useMemo(() => {
if (compositeNode.parent) {
return `${compositeNode.parent.replace('composite-', '')}/${
compositeNode.label
}`;
}
return compositeNode.label;
}, [compositeNode]);
const label = compositeNode.parent
? `${compositeNode.parent}/${compositeNode.label}`
: compositeNode.label;

function toggleProject() {
if (compositeNode.state !== 'hidden') {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
"@markdoc/markdoc": "0.2.2",
"@monaco-editor/react": "^4.4.6",
"@napi-rs/canvas": "^0.1.52",
"@nx/graph": "0.0.1-alpha.22",
"@nx/graph": "0.0.1-alpha.23",
"@react-spring/three": "^9.7.3",
"@react-three/drei": "^9.108.3",
"@react-three/fiber": "^8.16.8",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b2d2560

Please sign in to comment.