Skip to content

Commit

Permalink
fix: 修复一些 ts 报错 (#1689)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyue committed Dec 22, 2022
1 parent b6414ad commit 5e6b757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/f2/src/chart/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ class Chart<
getGeometrys() {
const { children } = this;
const geometrys: Component[] = [];
// @ts-ignore
Children.toArray(children).forEach((element) => {
if (!element) return false;
const { component } = element;
// @ts-ignore
if (component && component.isGeometry) {
geometrys.push(component);
}
Expand Down

0 comments on commit 5e6b757

Please sign in to comment.