mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-16 10:07:49 +02:00
Fix users latest session computed property
This commit is contained in:
@ -147,7 +147,7 @@ export default {
|
|||||||
return this.listeningStats.today || 0
|
return this.listeningStats.today || 0
|
||||||
},
|
},
|
||||||
latestSession() {
|
latestSession() {
|
||||||
if (!this.listeningSessions.sessions.length) return null
|
if (!this.listeningSessions.sessions || !this.listeningSessions.sessions.length) return null
|
||||||
return this.listeningSessions.sessions[0]
|
return this.listeningSessions.sessions[0]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user