mirror of
https://github.com/jeffvli/sonixd.git
synced 2026-04-30 19:22:37 -04:00
Change to local update when editing playlist
This commit is contained in:
@@ -262,8 +262,8 @@ const PlaylistView = ({ ...rest }) => {
|
||||
if (isFailedResponse(res)) {
|
||||
notifyToast('error', errorMessages(res)[0]);
|
||||
} else {
|
||||
queryClient.refetchQueries(['playlist'], {
|
||||
active: true,
|
||||
queryClient.setQueryData(['playlist', playlistId], (oldData: any) => {
|
||||
return { ...oldData, name: editName, comment: editDescription, public: editPublic };
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user