Don't merge provider details with vod store.

This commit is contained in:
SergeantPanda 2025-08-05 10:23:49 -05:00
parent fa29c679f5
commit ce331abdbc

View file

@ -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);