mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 06:42:53 +02:00
Use getServerSetting to ensure serverSettings is set before accessing
This commit is contained in:
@@ -193,7 +193,7 @@ export default {
|
||||
return `${process.env.serverUrl}/api/items/${this.libraryItemId}/download?token=${this.userToken}`
|
||||
},
|
||||
dateFormat() {
|
||||
return this.$store.state.serverSettings.dateFormat
|
||||
return this.$store.getters['getServerSetting']('dateFormat')
|
||||
},
|
||||
userIsAdminOrUp() {
|
||||
return this.$store.getters['user/getIsAdminOrUp']
|
||||
|
||||
Reference in New Issue
Block a user