From bb95011dff40f3ac56a30b14c8a7a2a4708d3927 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Tue, 6 Dec 2022 17:42:09 +0300 Subject: [PATCH] fix playTrackNext function in queue store --- src/config.ts | 2 +- src/stores/queue.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index baa0d923..12ba2882 100644 --- a/src/config.ts +++ b/src/config.ts @@ -7,7 +7,7 @@ export interface D { const domains: D = { local: "http://localhost:", - remote: "http://10.16.22.240:", + remote: "http://10.10.219.196:", }; const ports = { diff --git a/src/stores/queue.ts b/src/stores/queue.ts index b1699cf0..93e03643 100644 --- a/src/stores/queue.ts +++ b/src/stores/queue.ts @@ -190,7 +190,7 @@ export default defineStore("Queue", { const next: Track = this.tracklist[nextindex]; // if track is already next, skip - if (next?.id === track.id) { + if (next?.trackhash === track.trackhash) { Toast.showNotification("Track is already queued", NotifType.Info); return; }