From 6327a23be62467bc27f30e243620a67c15aacb9e Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Tue, 24 Jun 2025 20:32:47 -0700 Subject: [PATCH] fixed type errors --- apps/dispatch/app/_components/map/MissionMarkers.tsx | 3 +++ .../map/_components/MissionMarkerTabs.tsx | 12 ++++++------ .../app/dispatch/_components/pannel/MissionForm.tsx | 6 +++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/apps/dispatch/app/_components/map/MissionMarkers.tsx b/apps/dispatch/app/_components/map/MissionMarkers.tsx index e8021838..ce2566e0 100644 --- a/apps/dispatch/app/_components/map/MissionMarkers.tsx +++ b/apps/dispatch/app/_components/map/MissionMarkers.tsx @@ -172,6 +172,9 @@ const MissionPopupContent = ({ addressMissionDestination: mission.addressMissionDestination ?? undefined, addressAdditionalInfo: mission.addressAdditionalInfo ?? undefined, state: "draft", + hpgAmbulanceState: "NOT_REQUESTED", + hpgFireEngineState: "NOT_REQUESTED", + hpgPoliceState: "NOT_REQUESTED", hpgLocationLat: mission.hpgLocationLat ?? undefined, hpgLocationLng: mission.hpgLocationLng ?? undefined, }); diff --git a/apps/dispatch/app/_components/map/_components/MissionMarkerTabs.tsx b/apps/dispatch/app/_components/map/_components/MissionMarkerTabs.tsx index 4ed99b7e..7fdd1f1a 100644 --- a/apps/dispatch/app/_components/map/_components/MissionMarkerTabs.tsx +++ b/apps/dispatch/app/_components/map/_components/MissionMarkerTabs.tsx @@ -114,9 +114,9 @@ const Einsatzdetails = ({ setMissionFormValues({ ...mission, id: undefined, - hpgAmbulanceState: null, - hpgFireEngineState: null, - hpgPoliceState: null, + hpgAmbulanceState: "NOT_REQUESTED", + hpgFireEngineState: "NOT_REQUESTED", + hpgPoliceState: "NOT_REQUESTED", hpgLocationLat: undefined, hpgLocationLng: undefined, state: "draft", @@ -311,9 +311,9 @@ const Einsatzdetails = ({ setMissionFormValues({ ...mission, id: undefined, - hpgAmbulanceState: null, - hpgFireEngineState: null, - hpgPoliceState: null, + hpgAmbulanceState: "NOT_REQUESTED", + hpgFireEngineState: "NOT_REQUESTED", + hpgPoliceState: "NOT_REQUESTED", hpgLocationLat: undefined, hpgLocationLng: undefined, state: "draft", diff --git a/apps/dispatch/app/dispatch/_components/pannel/MissionForm.tsx b/apps/dispatch/app/dispatch/_components/pannel/MissionForm.tsx index 9d37942c..3ff05a03 100644 --- a/apps/dispatch/app/dispatch/_components/pannel/MissionForm.tsx +++ b/apps/dispatch/app/dispatch/_components/pannel/MissionForm.tsx @@ -96,9 +96,9 @@ export const MissionForm = () => { missionKeywordAbbreviation: null as any, missionKeywordCategory: null as any, missionKeywordName: null as any, - hpgFireEngineState: null, - hpgAmbulanceState: null, - hpgPoliceState: null, + hpgAmbulanceState: "NOT_REQUESTED", + hpgFireEngineState: "NOT_REQUESTED", + hpgPoliceState: "NOT_REQUESTED", hpgMissionString: null, hpgSelectedMissionString: null, hpg: null,