Skip to content

Commit

Permalink
7060769a9e52d1c4766a799e5e20e43a3bb77e85 Fix: Error when checking `is…
Browse files Browse the repository at this point in the history
…Shown()` for a deleted row

https://datatables.net/forums/discussion/78342

Sync to source repo @7060769a9e52d1c4766a799e5e20e43a3bb77e85
  • Loading branch information
dtbuild committed May 7, 2024
1 parent 3b005a0 commit 2880044
Show file tree
Hide file tree
Showing 5 changed files with 5 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.7",
"last-sync": "2dbfcaac1f25b06c8aba6e9233eda9a22c8b1d32"
"last-sync": "7060769a9e52d1c4766a799e5e20e43a3bb77e85"
}
2 changes: 1 addition & 1 deletion js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -8231,7 +8231,7 @@
_api_register( _child_obj+'.isShown()', function () {
var ctx = this.context;

if ( ctx.length && this.length ) {
if ( ctx.length && this.length && ctx[0].aoData[ this[0] ] ) {
// _detailsShown as false or undefined will fall through to return false
return ctx[0].aoData[ this[0] ]._detailsShow || false;
}
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.

2 changes: 1 addition & 1 deletion js/dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8178,7 +8178,7 @@ _api_register( [
_api_register( _child_obj+'.isShown()', function () {
var ctx = this.context;

if ( ctx.length && this.length ) {
if ( ctx.length && this.length && ctx[0].aoData[ this[0] ] ) {
// _detailsShown as false or undefined will fall through to return false
return ctx[0].aoData[ this[0] ]._detailsShow || false;
}
Expand Down

0 comments on commit 2880044

Please sign in to comment.