From 0e5fb7acd7003bcf98e7bcf848ee647ba6b1f5f3 Mon Sep 17 00:00:00 2001 From: Kees van Kempen Date: Tue, 27 Feb 2024 23:06:33 +0100 Subject: [PATCH] fix(queues): remove faulty update, add null-coalescing on song user Removal of update call might resolve #66, but I hope I do not negate @tjibbegottmer's work. --- marietje/queues/templates/queues/queue.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/marietje/queues/templates/queues/queue.html b/marietje/queues/templates/queues/queue.html index 74d1d75..5f68a51 100644 --- a/marietje/queues/templates/queues/queue.html +++ b/marietje/queues/templates/queues/queue.html @@ -285,7 +285,6 @@ watch: { playsIn: { handler(val, oldVal) { - this.update_infobar(); setCookie("PLAYS_IN", this.playsIn, 14); } }, @@ -359,7 +358,7 @@ } infoBar.now_in_seconds = Math.round((new Date()).getTime() / 1000); // If the current song is the current user's, their queue has started. - if (this.queue[0].user.id === this.user_data.id) { + if (this.queue[0].user?.id === this.user_data.id) { infoBar.start_personal_queue = 0; } for (let i = 0; i < this.queue.length; i++) {