Skip to content

Commit

Permalink
return early if tabulator is undefined (#6223)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt authored and philippjfr committed Jan 18, 2024
1 parent 35793c5 commit 3b25def
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions panel/models/tabulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ export class DataTabulatorView extends HTMLBoxView {
this.connect(p.sorters.change, () => this.setSorters())
this.connect(p.theme_classes.change, () => this.setCSSClasses(this.tabulator.element))
this.connect(this.model.source.properties.data.change, () => {
if (this.tabulator === undefined)
return
this._selection_updating = true
this.setData()
this._selection_updating = false
Expand Down

0 comments on commit 3b25def

Please sign in to comment.