Skip to content

Commit

Permalink
5e9a1a2865541ad9206747cb25b9e97aa3f238cc Fix: Error encounted when us…
Browse files Browse the repository at this point in the history
…ing a column selector after a row has been removed

Sync to source repo @5e9a1a2865541ad9206747cb25b9e97aa3f238cc
  • Loading branch information
dtbuild committed Apr 17, 2024
1 parent 5720b48 commit 59abadb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"src-repo": "http://github.com/DataTables/DataTablesSrc",
"last-tag": "2.0.4",
"last-sync": "10dacba3ab69306f27acd2d1eeeaafab3f2ed4d2"
"last-sync": "5e9a1a2865541ad9206747cb25b9e97aa3f238cc"
}
8 changes: 7 additions & 1 deletion js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -2645,9 +2645,15 @@
type = 'sort';
}

var row = settings.aoData[rowIdx];

if (row === null) {
return undefined;
}

var draw = settings.iDraw;
var col = settings.aoColumns[colIdx];
var rowData = settings.aoData[rowIdx]._aData;
var rowData = row._aData;
var defaultContent = col.sDefaultContent;
var cellData = col.fnGetData( rowData, type, {
settings: settings,
Expand Down
2 changes: 1 addition & 1 deletion js/dataTables.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.min.mjs

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion js/dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2592,9 +2592,15 @@ function _fnGetCellData( settings, rowIdx, colIdx, type )
type = 'sort';
}

var row = settings.aoData[rowIdx];

if (row === null) {
return undefined;
}

var draw = settings.iDraw;
var col = settings.aoColumns[colIdx];
var rowData = settings.aoData[rowIdx]._aData;
var rowData = row._aData;
var defaultContent = col.sDefaultContent;
var cellData = col.fnGetData( rowData, type, {
settings: settings,
Expand Down

0 comments on commit 59abadb

Please sign in to comment.