Skip to content

Commit

Permalink
Fix: JS error when loading state (possibly with YADCF only)
Browse files Browse the repository at this point in the history
Resulted from DD-2431
  • Loading branch information
AllanJard committed May 17, 2022
1 parent 19fa0e3 commit d74e62e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/dataTables.scroller.js
Expand Up @@ -532,7 +532,10 @@ $.extend( Scroller.prototype, {
if ( initialStateSave && loadedState ) {
data.scroller = loadedState.scroller;
initialStateSave = false;
that.s.lastScrollTop = data.scroller.scrollTop;

if (data.scroller) {
that.s.lastScrollTop = data.scroller.scrollTop;
}
}
else {
// Need to used the saved position on init
Expand Down

0 comments on commit d74e62e

Please sign in to comment.