Skip to content

Commit

Permalink
Fix edit bug
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszbachorski committed Dec 6, 2024
1 parent 9b85b40 commit 7f4ed59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/~_dashboard/~patients/~$id/Labs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const Labs = ({ observations, userId, resourceType }: LabsProps) => {
}

const handleEdit = async (data: LabFormSchema) => {
const observation = deleteDialog.state
const observation = editDialog.state

Check warning on line 66 in routes/~_dashboard/~patients/~$id/Labs.tsx

View check run for this annotation

Codecov / codecov/patch

routes/~_dashboard/~patients/~$id/Labs.tsx#L66

Added line #L66 was not covered by tests
if (!observation) return
await updateObservation({
userId,
Expand Down

0 comments on commit 7f4ed59

Please sign in to comment.