Skip to content

Commit

Permalink
Merge pull request #486 from ertush/hotfix
Browse files Browse the repository at this point in the history
modified Basic Details form to add null if no value is supplied in fa…
ertush authored Sep 13, 2024
2 parents 77a8be8 + 705f750 commit 4b552ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/Forms/BasicDetailsForm.js
Original file line number Diff line number Diff line change
@@ -507,8 +507,9 @@ export function BasicDeatilsForm({ editMode }) {

const formData = new FormData(e.target)

const data = Object.fromEntries(formData)
let data = Object.fromEntries(formData)

data['facility_catchment_population'] = data?.facility_catchment_population === '' ? null : data?.facility_catchment_population

setSubmitting(true)

0 comments on commit 4b552ff

Please sign in to comment.