Use getServerSetting to ensure serverSettings is set before accessing

This commit is contained in:
advplyr
2025-07-06 17:39:03 -05:00
parent df60aeb456
commit ce803dd6de
17 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -250,10 +250,10 @@ export default {
return user?.username || null
},
dateFormat() {
return this.$store.state.serverSettings.dateFormat
return this.$store.getters['getServerSetting']('dateFormat')
},
timeFormat() {
return this.$store.state.serverSettings.timeFormat
return this.$store.getters['getServerSetting']('timeFormat')
},
numSelected() {
return this.listeningSessions.filter((s) => s.selected).length