mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-19 17:54:14 +01:00
Dev fix: When no ordering was aplied to the table, the next order would
throw an error
This commit is contained in:
parent
1a317a07bf
commit
8f356ab917
@ -1 +1 @@
|
||||
15c2d8b6fcb5b0c9d08c43e2b66f996594cf4d12
|
||||
b8cd533bc7dec1484d23ef0f8d5de1c440b2b4cf
|
||||
|
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -4368,7 +4368,7 @@
|
||||
sorting[sorting.length-1]._idx = 0;
|
||||
}
|
||||
}
|
||||
else if ( sorting[0][0] == colIdx ) {
|
||||
else if ( sorting.length && sorting[0][0] == colIdx ) {
|
||||
// Single column - already sorting on this column, modify the sort
|
||||
nextSortIdx = next( sorting[0] );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user