From 3ffc481a540b5312163808955f141b65e28fe84f Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 12 Nov 2022 08:03:13 -0600 Subject: [PATCH] Fix users latest session computed property --- client/pages/config/users/_id/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/pages/config/users/_id/index.vue b/client/pages/config/users/_id/index.vue index d09dc44a..80ef4c62 100644 --- a/client/pages/config/users/_id/index.vue +++ b/client/pages/config/users/_id/index.vue @@ -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] } },