diff --git a/app/client/components/ChartView.ts b/app/client/components/ChartView.ts index 0e756d3f..52935cba 100644 --- a/app/client/components/ChartView.ts +++ b/app/client/components/ChartView.ts @@ -206,7 +206,7 @@ export class ChartView extends Disposable { } private _resizeChart() { - if (this.isDisposed() || !Plotly) { return; } + if (this.isDisposed() || !Plotly || !this._chartDom.parentNode) { return; } Plotly.Plots.resize(this._chartDom); } }