fix: auto-populate prescription content and lab content from pre-selected defaults
This commit is contained in:
@@ -108,7 +108,7 @@ protected function getHeaderActions(): array
|
||||
if (! empty($arguments['delete'])) {
|
||||
$existingAppointment = $record->surgeryAppointment;
|
||||
|
||||
SurgeryAppointment::where('patient_id', $record->id)->delete();
|
||||
$existingAppointment?->delete();
|
||||
$record->unsetRelation('surgeryAppointment');
|
||||
|
||||
if ($existingAppointment) {
|
||||
|
||||
Reference in New Issue
Block a user