mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-02 18:04:29 +08:00
Merge pull request #5872 from artoscinote/ma_SCI_8934
Fix loading of column order if no sizes are present [SCI-8934]
This commit is contained in:
commit
919d59bead
1 changed files with 1 additions and 3 deletions
|
@ -565,7 +565,7 @@ var RepositoryDatatable = (function(global) {
|
|||
saveState(state);
|
||||
},
|
||||
stateLoadCallback: (state) => {
|
||||
if (!TABLE.ColSizes) return;
|
||||
if (!TABLE.ColSizes || TABLE.ColSizes.length === 0) return;
|
||||
|
||||
let colSizes = TABLE.ColSizes;
|
||||
|
||||
|
@ -754,8 +754,6 @@ var RepositoryDatatable = (function(global) {
|
|||
});
|
||||
},
|
||||
stateSaveCallback: function(_, data) {
|
||||
if (Object.keys(colSizeMap).length === 0) return true;
|
||||
|
||||
let colSizes = [];
|
||||
|
||||
for (let i = 0; i < data.ColReorder.length; i += 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue