return new object from store call

This commit is contained in:
dekzter 2025-08-08 09:40:02 -04:00
parent 5a92487d38
commit 44fecff2f2

View file

@ -31,6 +31,8 @@ const usePlaylistsStore = create((set) => ({
[id]: playlist.profiles,
},
}));
return playlist;
} catch (error) {
console.error('Failed to fetch playlists:', error);
set({ error: 'Failed to load playlists.', isLoading: false });