mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-30 04:29:24 +08:00
fix: stabilize knowledge compilation navigation updates (#17345)
This commit is contained in:
@@ -29,6 +29,7 @@ export function buildNavTreeData(
|
||||
const item: TreeDataItem = {
|
||||
id: node.name,
|
||||
name: node.name,
|
||||
hasChildren: node.has_children,
|
||||
actions: getActions?.(node, null),
|
||||
onClick: () => onParentClick(node),
|
||||
};
|
||||
@@ -39,6 +40,7 @@ export function buildNavTreeData(
|
||||
item.children = children.map((child) => ({
|
||||
id: `${node.name}/${child.name}`,
|
||||
name: child.name,
|
||||
hasChildren: child.has_children,
|
||||
actions: getActions?.(child, node.name),
|
||||
onClick: () => onChildClick(child, node.name),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user