mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-17 00:01:10 +02:00
Fix:getBookCoverAspectRatio
This commit is contained in:
parent
fbd7ae10d1
commit
a19b6370c4
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export const getters = {
|
||||||
return state.serverSettings[key]
|
return state.serverSettings[key]
|
||||||
},
|
},
|
||||||
getBookCoverAspectRatio: state => {
|
getBookCoverAspectRatio: state => {
|
||||||
if (!state.serverSettings || !state.serverSettings.coverAspectRatio) return 1
|
if (!state.serverSettings || isNaN(state.serverSettings.coverAspectRatio)) return 1
|
||||||
return state.serverSettings.coverAspectRatio === 0 ? 1.6 : 1
|
return state.serverSettings.coverAspectRatio === 0 ? 1.6 : 1
|
||||||
},
|
},
|
||||||
getNumLibraryItemsSelected: state => state.selectedLibraryItems.length,
|
getNumLibraryItemsSelected: state => state.selectedLibraryItems.length,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue