mirror of
https://github.com/langgenius/dify.git
synced 2026-03-13 19:17:43 +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.