Skip to content

Commit

Permalink
fix(core/tree): add undefined check to disconnected callback (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux authored Oct 23, 2023
1 parent fa44ab5 commit 38e5ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/tree/tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ export class Tree {
}

disconnectedCallback() {
this.hyperlist.destroy();
this.observer.disconnect();
this.hyperlist?.destroy();
this.observer?.disconnect();
}

@Watch('model')
Expand Down

0 comments on commit 38e5ca6

Please sign in to comment.