Skip to content

Commit

Permalink
fix: fix issue that legend category cannot update shape
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed May 9, 2023
1 parent ae253df commit efbae37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/component/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ export function inferComponentLayout(
export class G2Layout extends Layout {
update(options: any) {
this.attr(options);
const { width, height, ...restOptions } = options;
(this.children?.[0] as any)?.update(restOptions);
(this.children?.[0] as any)?.update(options);
}
}

Expand Down

0 comments on commit efbae37

Please sign in to comment.