mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
Replace getAncestorIds(treeData) with node.parent chain traversal for more efficient ancestor lookup. This avoids re-traversing the tree data structure and uses react-arborist's built-in parent refs. Also rename hook to useSyncTreeWithActiveTab for clarity. |
||
|---|---|---|
| .. | ||
| index.tsx | ||
| menu-item.tsx | ||
| node-menu.tsx | ||
| tree-context-menu.tsx | ||
| tree-edit-input.tsx | ||
| tree-guide-lines.tsx | ||
| tree-node.tsx | ||