Skip to content

Commit

Permalink
Merge pull request #509 from ertush/hotfix
Browse files Browse the repository at this point in the history
Hotfix: Fixed redirect after validating or approving a facility
  • Loading branch information
ertush authored Oct 16, 2024
2 parents 6de9773 + a53638f commit 1c8a63c
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions controllers/facility/approveRejectFacility.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ function validateRejectFacility (facility_id, reject, comment, alert, token, set
alert.success("Facility rejected successfully")
}



router.push({
pathname: '/facilities',
filter:'pending_validation_facilities',
pending_approval: true,
has_edits: false

}) // redirect to New Facilties Pending Validation
query: {
filter:'pending_validation_facilities',
pending_approval: true,
has_edits: false
}
}) // redirect to New Facilties Pending Validation

} else {
setSubmitting(false)
Expand Down Expand Up @@ -100,8 +103,10 @@ function approveRejectFacility (facility_id, comment, alert, reject, token, setS

router.push({
pathname: '/facilities',
to_publish: true,
closed: false
query: {
to_publish: true,
closed: false
}
})

} else {
Expand Down

0 comments on commit 1c8a63c

Please sign in to comment.