fixed type errors

This commit is contained in:
PxlLoewe
2025-06-24 20:32:47 -07:00
parent 9ea2593159
commit 6327a23be6
3 changed files with 12 additions and 9 deletions

View File

@@ -172,6 +172,9 @@ const MissionPopupContent = ({
addressMissionDestination: mission.addressMissionDestination ?? undefined, addressMissionDestination: mission.addressMissionDestination ?? undefined,
addressAdditionalInfo: mission.addressAdditionalInfo ?? undefined, addressAdditionalInfo: mission.addressAdditionalInfo ?? undefined,
state: "draft", state: "draft",
hpgAmbulanceState: "NOT_REQUESTED",
hpgFireEngineState: "NOT_REQUESTED",
hpgPoliceState: "NOT_REQUESTED",
hpgLocationLat: mission.hpgLocationLat ?? undefined, hpgLocationLat: mission.hpgLocationLat ?? undefined,
hpgLocationLng: mission.hpgLocationLng ?? undefined, hpgLocationLng: mission.hpgLocationLng ?? undefined,
}); });

View File

@@ -114,9 +114,9 @@ const Einsatzdetails = ({
setMissionFormValues({ setMissionFormValues({
...mission, ...mission,
id: undefined, id: undefined,
hpgAmbulanceState: null, hpgAmbulanceState: "NOT_REQUESTED",
hpgFireEngineState: null, hpgFireEngineState: "NOT_REQUESTED",
hpgPoliceState: null, hpgPoliceState: "NOT_REQUESTED",
hpgLocationLat: undefined, hpgLocationLat: undefined,
hpgLocationLng: undefined, hpgLocationLng: undefined,
state: "draft", state: "draft",
@@ -311,9 +311,9 @@ const Einsatzdetails = ({
setMissionFormValues({ setMissionFormValues({
...mission, ...mission,
id: undefined, id: undefined,
hpgAmbulanceState: null, hpgAmbulanceState: "NOT_REQUESTED",
hpgFireEngineState: null, hpgFireEngineState: "NOT_REQUESTED",
hpgPoliceState: null, hpgPoliceState: "NOT_REQUESTED",
hpgLocationLat: undefined, hpgLocationLat: undefined,
hpgLocationLng: undefined, hpgLocationLng: undefined,
state: "draft", state: "draft",

View File

@@ -96,9 +96,9 @@ export const MissionForm = () => {
missionKeywordAbbreviation: null as any, missionKeywordAbbreviation: null as any,
missionKeywordCategory: null as any, missionKeywordCategory: null as any,
missionKeywordName: null as any, missionKeywordName: null as any,
hpgFireEngineState: null, hpgAmbulanceState: "NOT_REQUESTED",
hpgAmbulanceState: null, hpgFireEngineState: "NOT_REQUESTED",
hpgPoliceState: null, hpgPoliceState: "NOT_REQUESTED",
hpgMissionString: null, hpgMissionString: null,
hpgSelectedMissionString: null, hpgSelectedMissionString: null,
hpg: null, hpg: null,