updated librarys for dispatch
This commit is contained in:
@@ -92,10 +92,20 @@ export const MissionForm = () => {
|
||||
({
|
||||
createdUserId: session.data?.user.id,
|
||||
type: "primär",
|
||||
addressLat: 0,
|
||||
addressLng: 0,
|
||||
addressStreet: null,
|
||||
addressCity: null,
|
||||
addressZip: null,
|
||||
addressAdditionalInfo: "",
|
||||
addressMissionDestination: "",
|
||||
addressOSMways: [],
|
||||
missionKeywordAbbreviation: null as any,
|
||||
missionKeywordCategory: null as any,
|
||||
missionKeywordName: null as any,
|
||||
missionAdditionalInfo: "",
|
||||
missionPatientInfo: "",
|
||||
missionStationIds: [],
|
||||
hpgAmbulanceState: "NOT_REQUESTED",
|
||||
hpgFireEngineState: "NOT_REQUESTED",
|
||||
hpgPoliceState: "NOT_REQUESTED",
|
||||
@@ -103,11 +113,11 @@ export const MissionForm = () => {
|
||||
hpgSelectedMissionString: null,
|
||||
hpg: null,
|
||||
missionLog: [],
|
||||
}) as Partial<MissionOptionalDefaults>,
|
||||
}) as MissionOptionalDefaults,
|
||||
[session.data?.user.id],
|
||||
);
|
||||
|
||||
const form = useForm<MissionOptionalDefaults>({
|
||||
const form = useForm({
|
||||
resolver: zodResolver(MissionOptionalDefaultsSchema),
|
||||
defaultValues: defaultFormValues,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user