fix: appointment clinic relation — save clinicId, query clinic.clinicName for branch column

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-13 14:38:11 +05:30
parent 8bc01d1a9f
commit 642911fa6c
2 changed files with 9 additions and 4 deletions

View File

@@ -297,6 +297,7 @@ export const AppointmentForm = ({
doctorId: doctor,
reasonForVisit: chiefComplaint || null,
...(resolvedPatientId ? { patientId: resolvedPatientId } : {}),
...(clinic ? { clinicId: clinic } : {}),
},
},
);