Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonneyx committed Dec 12, 2024
1 parent aa66104 commit edab29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphs/src/core/utils/data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function treeData2GraphData(data: TreeData, defaultExpandLevel?: number):
if (defaultExpandLevel) {
datum.style.collapsed = depth >= defaultExpandLevel;
}
if (!datum.children) return datum as NodeData;
if (!datum.children) return datum as unknown as NodeData;
const { children, ...restDatum } = datum;
return { ...restDatum, children: children.map((child) => child.id) };
},
Expand Down

0 comments on commit edab29a

Please sign in to comment.