From 452e2ee21320b3ae95c8e8675e9744d12012c6a7 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Tue, 6 May 2025 08:13:59 -0500 Subject: [PATCH] Fixes status not changing to fetchign and parsing when those operations are occuring. --- frontend/src/WebSocket.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/WebSocket.jsx b/frontend/src/WebSocket.jsx index 7f1ba5c7..39ccfcee 100644 --- a/frontend/src/WebSocket.jsx +++ b/frontend/src/WebSocket.jsx @@ -190,15 +190,16 @@ export const WebsocketProvider = ({ children }) => { // Update the store with progress information setRefreshProgress(parsedEvent.data); - // Always update status for pending_setup, not just when progress is 100% - if ((parsedEvent.data.progress === 100 || parsedEvent.data.status === "pending_setup") && parsedEvent.data.account) { + // Update the playlist status whenever we receive a status update + // Not just when progress is 100% or status is pending_setup + if (parsedEvent.data.status && parsedEvent.data.account) { const playlistsState = usePlaylistsStore.getState(); const playlist = playlistsState.playlists.find(p => p.id === parsedEvent.data.account); if (playlist) { playlistsState.updatePlaylist({ ...playlist, - status: parsedEvent.data.status || 'success', + status: parsedEvent.data.status, last_message: parsedEvent.data.message || playlist.last_message }); }