Fix item tree sorting when column doesn't have .sortDirection property
This commit is contained in:
parent
d77b00bf9a
commit
4fa7070a31
1 changed files with 1 additions and 1 deletions
|
@ -1762,7 +1762,7 @@ var ItemTree = class ItemTree extends LibraryTree {
|
|||
for (const field of sortFields) {
|
||||
const col = columns.find(c => c.dataKey == field);
|
||||
if (col) {
|
||||
return col.sortDirection;
|
||||
return col.sortDirection || 1;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue