Compare commits
3 Commits
110f5dc92e
...
9aa28a9fa3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9aa28a9fa3 | ||
| 4733916523 | |||
|
|
eb3a23ab03 |
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user