mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
return new object from store call
This commit is contained in:
parent
5a92487d38
commit
44fecff2f2
1 changed files with 2 additions and 0 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue