mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-08-04 07:42:47 +00:00
Update playlist store when auto sync settings change.
This commit is contained in:
parent
b406a3b504
commit
f40e9fb9be
1 changed files with 3 additions and 2 deletions
|
|
@ -739,7 +739,9 @@ export default class API {
|
|||
method: 'PATCH',
|
||||
body: { group_settings: groupSettings },
|
||||
});
|
||||
|
||||
// Fetch the updated playlist and update the store
|
||||
const updatedPlaylist = await API.getPlaylist(playlistId);
|
||||
usePlaylistsStore.getState().updatePlaylist(updatedPlaylist);
|
||||
return response;
|
||||
} catch (e) {
|
||||
errorNotification('Failed to update M3U group settings', e);
|
||||
|
|
@ -781,7 +783,6 @@ export default class API {
|
|||
const response = await request(`${host}/api/m3u/refresh/${id}/`, {
|
||||
method: 'POST',
|
||||
});
|
||||
|
||||
return response;
|
||||
} catch (e) {
|
||||
errorNotification('Failed to refresh M3U account', e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue