Skip to content

Commit

Permalink
Allow route to facility to be edited if null (#6742)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Nov 28, 2023
1 parent 466d4ed commit 5cde457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Facility/ConsultationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ export const ConsultationForm = (props: any) => {
required
label="Route to Facility"
{...field("route_to_facility")}
disabled={isUpdate}
disabled={isUpdate && !!state.form.route_to_facility} // For backwards compatibility; Allow in edit form only if route_to_facility is not set previously
/>
</div>

Expand Down

0 comments on commit 5cde457

Please sign in to comment.