Skip to content

Commit

Permalink
fix (facilityCreate): send null when location is not selected (#4082)
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar authored Nov 20, 2022
1 parent 2c67ab9 commit 028eda4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Facility/FacilityCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ export const FacilityCreate = (props: FacilityProps) => {
features: state.form.features,
ward: state.form.ward,
kasp_empanelled: JSON.parse(state.form.kasp_empanelled),
latitude: state.form.latitude,
longitude: state.form.longitude,
latitude: state.form.latitude || null,
longitude: state.form.longitude || null,
phone_number: parsePhoneNumberFromString(
state.form.phone_number
)?.format("E.164"),
Expand Down

0 comments on commit 028eda4

Please sign in to comment.