mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
fix(webui): libraries ordering does not work on Chrome
This commit is contained in:
parent
174c6fdf38
commit
e528c7e3d9
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ const vuexModule: Module<any, any> = {
|
|||
const settings = getters.getClientSettingsLibraries
|
||||
return state.libraries
|
||||
.map((it: LibraryDto) => Object.assign({}, it, settings[it.id]))
|
||||
.sort((a: LibraryDto, b: LibraryDto) => a.order > b.order)
|
||||
.sort((a: LibraryDto, b: LibraryDto) => a.order - b.order)
|
||||
},
|
||||
getLibraryById: (state, getters) => (id: number) => {
|
||||
return getters.getLibraries.find((l: any) => l.id === id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue