Skip to content

Commit 8c3e610

Browse files
committed
fix: fix bug
1 parent 4a29823 commit 8c3e610

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

packages/devextreme/js/__internal/grids/pivot_grid/data_source/m_data_source.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,9 @@ class PivotGridDataSource {
14061406
delayedLoadTask.abort();
14071407
}
14081408

1409-
that._store?.dispose();
1409+
if (that._store) {
1410+
that._store.dispose();
1411+
}
14101412

14111413
this._isDisposed = true;
14121414
}

packages/devextreme/js/__internal/grids/pivot_grid/local_store/m_local_store.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,9 @@ const LocalStore = Class.inherit((function () {
586586
},
587587

588588
dispose() {
589-
this._dataSource?.dispose();
589+
if (this._dataSource) {
590+
this._dataSource.dispose();
591+
}
590592
},
591593
};
592594
})()).include(storeDrillDownMixin);

packages/devextreme/js/__internal/grids/pivot_grid/remote_store/m_remote_store.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,9 @@ class RemoteStore {
664664
}
665665

666666
dispose() {
667-
this._dataSource?.dispose();
667+
if (this._dataSource) {
668+
this._dataSource.dispose();
669+
}
668670
}
669671
}
670672

0 commit comments

Comments
 (0)