From 6bea8b09987aa76e1f701f6d2900c0c8748af4eb Mon Sep 17 00:00:00 2001 From: Arkadiusz Bachorski <60391032+arkadiuszbachorski@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:40:57 +0200 Subject: [PATCH] Silent error --- routes/~_dashboard/~patients/actions.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/~_dashboard/~patients/actions.tsx b/routes/~_dashboard/~patients/actions.tsx index cee9d1c5..6ec4cc61 100644 --- a/routes/~_dashboard/~patients/actions.tsx +++ b/routes/~_dashboard/~patients/actions.tsx @@ -184,6 +184,7 @@ export const createAppointment = async ( resourceType: payload.resourceType, }), { + // @ts-expect-error id can be null, because FHIRAppointment.id is nullable. id is overridden by getDocData id: null, created: new Date().toISOString(), ...getAppointmentData(payload),