Skip to content

Commit

Permalink
Fix bug when perspective has not been rendered (#6847)
Browse files Browse the repository at this point in the history
* fix bug when perspective has not been rendered

* add space before brace
  • Loading branch information
MarcSkovMadsen authored May 17, 2024
1 parent 0f39160 commit 01e2337
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion panel/models/perspective.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ export class PerspectiveView extends HTMLBoxView {
}

override remove(): void {
this.perspective_element.delete(() => this.worker.terminate())
if (this.perspective_element) {
this.perspective_element.delete(() => this.worker.terminate())
}
super.remove()
}

Expand Down

0 comments on commit 01e2337

Please sign in to comment.