Skip to content

Commit

Permalink
Merge pull request #462 from ertush/hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
ertush authored Aug 23, 2024
2 parents 223f97d + a0ea62d commit 5cdf15f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/Forms/CommunityUnitsForms.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function EditCommunityUnitsBasicDeatilsForm(props) {
})


if(event.currentTarget.name === `contact_type_${uid}`) {
if(event.currentTarget?.name === `contact_type_${uid}`) {
setContactTypeLabel(options?.contactTypes.find(({value}) => value === event.currentTarget.value)?.label)
}
}
Expand Down
2 changes: 1 addition & 1 deletion pages/community-units/edit/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export async function getServerSideProps(ctx) {
.then((resp) => {
const params = `?sub_county=${resp?.results[0].id}&fields=id,name,county,sub_county_name,constituency,ward_name`

return fetch(`${process.env.NEXT_PUBLIC_API_URL}/facilities/facilities/${params}&reporting_in_dhis=true&owner_type=6a833136-5f50-46d9-b1f9-5f961a42249f`, {
return fetch(`${process.env.NEXT_PUBLIC_API_URL}/facilities/facilities/${params}&reporting_in_dhis=true`, { /*&owner_type=6a833136-5f50-46d9-b1f9-5f961a42249f*/
headers: {
'Authorization': 'Bearer ' + token,
'Accept': 'application/json'
Expand Down

0 comments on commit 5cdf15f

Please sign in to comment.