added update toast
This commit is contained in:
parent
30fa70ef78
commit
d4c70cf8ae
@ -18,6 +18,7 @@ export const useUpdatePublication = () => {
|
||||
}) => updatePublication(id, payload),
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ["publications"] });
|
||||
toast.success("Updated Publication")
|
||||
},
|
||||
onError: (error: any) => {
|
||||
const data = error?.response?.data;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user