Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
Links "DE#nnn" prior to version 2.0 point to the Dash Enterprise closed-source Dash AG Grid repo

## [unreleased]
### Fixed
- [#466](https://github.com/plotly/dash-ag-grid/issues/466) guard against a null `gridApi` in `onSortChanged`, which threw an uncaught `TypeError` when a grid initialized with a sort applied via `initialState.sort.sortModel`

## [33.3.3] - 2025-12-19
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fragments/AgGrid.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ export function DashAgGrid(props) {
if (rowModelType === 'clientSide') {
propsToSet.virtualRowData = virtualRowData();
}
if (!gridApi.isDestroyed()) {
if (gridApi && !gridApi?.isDestroyed()) {
propsToSet.columnState = JSON.parse(
JSON.stringify(gridApi.getColumnState())
);
Expand Down