Skip to content

Commit

Permalink
Hotfix: Fixed redirect after validating or approving a facility
Browse files Browse the repository at this point in the history
ertush committed Oct 16, 2024
1 parent cdfdcc9 commit a53638f
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
@@ -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)
@@ -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 {

0 comments on commit a53638f

Please sign in to comment.