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.
This commit is contained in:
2024-02-27 23:06:33 +01:00
parent ff3171022a
commit 0e5fb7acd7

View File

@ -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++) {