From 7f4ed59ab5e98be491ea3bdd63108f1c729ffd1a Mon Sep 17 00:00:00 2001 From: Arkadiusz Bachorski <60391032+arkadiuszbachorski@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:20:23 +0100 Subject: [PATCH] Fix edit bug --- routes/~_dashboard/~patients/~$id/Labs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/~_dashboard/~patients/~$id/Labs.tsx b/routes/~_dashboard/~patients/~$id/Labs.tsx index 955fabda..10273ef8 100644 --- a/routes/~_dashboard/~patients/~$id/Labs.tsx +++ b/routes/~_dashboard/~patients/~$id/Labs.tsx @@ -63,7 +63,7 @@ export const Labs = ({ observations, userId, resourceType }: LabsProps) => { } const handleEdit = async (data: LabFormSchema) => { - const observation = deleteDialog.state + const observation = editDialog.state if (!observation) return await updateObservation({ userId,