mirror of
https://github.com/gotson/komga.git
synced 2026-05-07 12:01:40 +02:00
fix infinite series sort
This commit is contained in:
parent
e6b70d28af
commit
2f7f7ea474
2 changed files with 4 additions and 2 deletions
|
|
@ -451,7 +451,9 @@ const {
|
|||
body: apiQuery.value,
|
||||
params: {
|
||||
query: {
|
||||
...pageParam,
|
||||
page: pageParam.page,
|
||||
size: pageParam.size,
|
||||
sort: sortActive.value.map((it) => sortToString(it)),
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ function vSortItemToSort(sortItem: VSortItem): Sort {
|
|||
}
|
||||
}
|
||||
|
||||
function sortToString(sortItem: Sort | string): string {
|
||||
export function sortToString(sortItem: Sort | string): string {
|
||||
if (typeof sortItem === 'string') return sortItem
|
||||
|
||||
let sort = sortItem.key
|
||||
|
|
|
|||
Loading…
Reference in a new issue