File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,8 @@ export default class ColumnManager {
279279 sortOrder : currentColumn . sortOrder
280280 }
281281 } ;
282- localStorage . setItem ( 'savedSorting' , JSON . stringify ( saveSorting ) ) ;
282+ this . sortingKey = this . options . sortingKey ? 'sortedColumns' : `${ this . options . sortingKey } ::sortedColumns` ;
283+ localStorage . setItem ( this . sortingKey , JSON . stringify ( saveSorting ) ) ;
283284 }
284285
285286 removeColumn ( colIndex ) {
@@ -381,7 +382,8 @@ export default class ColumnManager {
381382 }
382383
383384 applySavedSortOrder ( ) {
384- let sortingConfig = JSON . parse ( localStorage . getItem ( 'savedSorting' ) ) ;
385+ let key = this . options . sortingKey ? 'sortedColumns' : `${ this . options . sortingKey } ::sortedColumns` ;
386+ let sortingConfig = JSON . parse ( localStorage . getItem ( key ) ) ;
385387 if ( sortingConfig ) {
386388 const columnsToSort = Object . values ( sortingConfig ) ;
387389 for ( let column of columnsToSort ) {
You can’t perform that action at this time.
0 commit comments