This commit is contained in:
PxlLoewe
2025-05-21 09:21:25 -07:00
parent a0b6e4d75b
commit fa10f4d7d4
3 changed files with 8 additions and 16 deletions

View File

@@ -47,17 +47,6 @@ export const MissionForm = () => {
});
},
});
const sendAlertMutation = useMutation({
mutationKey: ["missions"],
mutationFn: (id: number) => sendMissionAPI(id, {}),
onError: (error) => {
console.error(error);
toast.error("Fehler beim Alarmieren");
},
onSuccess: (data) => {
toast.success(data.message);
},
});
const editMissionMutation = useMutation({
mutationFn: ({
@@ -77,7 +66,7 @@ export const MissionForm = () => {
const sendAlertMutation = useMutation({
mutationKey: ["missions"],
mutationFn: sendMissionAPI,
mutationFn: (id: number) => sendMissionAPI(id, {}),
onError: (error) => {
console.error(error);
toast.error("Fehler beim Alarmieren");