mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-18 14:48:29 +01:00
Fix users latest session computed property
This commit is contained in:
1 parent
eb295453fc
commit
3ffc481a54
1 file changed
+1
-1
@@ -147,7 +147,7 @@ export default {
|
||||
return this.listeningStats.today || 0
|
||||
},
|
||||
latestSession() {
|
||||
if (!this.listeningSessions.sessions.length) return null
|
||||
if (!this.listeningSessions.sessions || !this.listeningSessions.sessions.length) return null
|
||||
return this.listeningSessions.sessions[0]
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user