fixes trail table sort
This commit is contained in:
@@ -98,14 +98,14 @@
|
|||||||
onupdate?.(filter);
|
onupdate?.(filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleSortUpdate(sort: any) {
|
function handleSortUpdate(sort: any) {
|
||||||
if (!filter) {
|
if (!filter) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (sort.detail === filter.sort) {
|
if (sort === filter.sort) {
|
||||||
setSortOrder();
|
setSortOrder();
|
||||||
} else {
|
} else {
|
||||||
filter.sort = sort.detail;
|
filter.sort = sort;
|
||||||
filter.sortOrder = "+";
|
filter.sortOrder = "+";
|
||||||
setSort();
|
setSort();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user