Skip to content

Commit

Permalink
Merge pull request #443 from ertush/hotfix
Browse files Browse the repository at this point in the history
Hotfix update to Community Health Unit Basic details update handler
  • Loading branch information
ertush authored Aug 8, 2024
2 parents 4b39cf8 + 1f37d88 commit f894145
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
10 changes: 3 additions & 7 deletions components/Forms/CommunityUnitsForms.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,8 @@ function EditCommunityUnitsBasicDeatilsForm(props) {
}
}


payload['basic']['contact'] && delete payload['basic']['contact']
payload['basic']['contact_type'] && delete payload['basic']['contact_type']



// payload['basic']['contact'] && delete payload['basic']['contact']
// payload['basic']['contact_type'] && delete payload['basic']['contact_type']

try {

Expand Down Expand Up @@ -540,7 +536,7 @@ function EditCommunityUnitsBasicDeatilsForm(props) {
Area of coverage
</label>
<input
required
// required
type="number"
name="location"
onChange={handleFieldChange}
Expand Down
6 changes: 3 additions & 3 deletions pages/facilities/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -973,9 +973,9 @@ export async function getServerSideProps(ctx) {
facilities?.results.length > 0
) {

if(ctx?.query?.has_edits) {
facilities = { results: facilities?.results?.filter(({latest_update}) => latest_update !== null), ...facilities }
}
// if(ctx?.query?.has_edits) {
// facilities = { results: facilities?.results?.filter(({latest_update}) => latest_update !== null), ...facilities }
// }

return {
props: {
Expand Down

0 comments on commit f894145

Please sign in to comment.