Fix item tree sorting when column doesn't have .sortDirection property

This commit is contained in:
Dan Stillman 2021-08-31 06:53:47 -04:00
parent d77b00bf9a
commit 4fa7070a31

View file

@ -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;