Skip to content

Commit

Permalink
fix(plugins): fix error when destroy snapline plugin (#6212)
Browse files Browse the repository at this point in the history
Co-authored-by: antv <[email protected]>
  • Loading branch information
Aarebecca and antv authored Aug 22, 2024
1 parent cdc6d1a commit 489f27b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/g6/src/plugins/snapline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ export class Snapline extends BasePlugin<SnaplineOptions> {
}

private destroyElements() {
this.horizontalLine.destroy();
this.verticalLine.destroy();
this.horizontalLine?.destroy();
this.verticalLine?.destroy();
}

public destroy() {
Expand Down

0 comments on commit 489f27b

Please sign in to comment.