mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-21 01:05:30 +00:00
Don't merge provider details with vod store.
This commit is contained in:
parent
fa29c679f5
commit
ce331abdbc
1 changed files with 2 additions and 7 deletions
|
|
@ -201,14 +201,9 @@ const useVODStore = create((set, get) => ({
|
|||
audio: response.audio || {},
|
||||
};
|
||||
|
||||
set((state) => ({
|
||||
vods: {
|
||||
...state.vods,
|
||||
[vodDetails.id]: vodDetails,
|
||||
},
|
||||
loading: false,
|
||||
}));
|
||||
set({ loading: false }); // Only update loading state, do not update vods{
|
||||
|
||||
// Do NOT merge or overwrite the store VOD entry
|
||||
return vodDetails;
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch VOD details from provider:', error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue