Merge pull request 'Fix: Breadcrumb disappearing' (#3) from claude/issue-2 into master

Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
2026-03-23 14:41:42 +00:00

View File

@@ -264,12 +264,7 @@ const Graph = forwardRef<GraphHandle, { setGraphPath: React.Dispatch<React.SetSt
title: selectedNodeName,
key: pathSegmentId,
onClick: () => {
const index = graphsPath.findIndex(p => p.key === pathSegmentId);
setGraphsPath(prev => {
prev.splice(index + 1);
return [...prev];
});
setGraphsPath(prev => prev.slice(0, prev.findIndex(p => p.key === pathSegmentId) + 1));
selectGraphId(pathSegmentId);
}
} as BreadcrumbItemType;