Skip to content

Commit

Permalink
Merge pull request #517 from ertush/hotfix
Browse files Browse the repository at this point in the history
Modified handleFocus
  • Loading branch information
ertush authored Oct 24, 2024
2 parents 3eaed27 + 3eaf548 commit a2e9c2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions components/Forms/BasicDetailsForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ export function BasicDeatilsForm({ editMode }) {
// Event handlers
const handleFocus = useCallback((e) => {

if(editMode){
setFilteredOptions(countyId, e.currentTarget.name)
}
// if(editMode){
// setFilteredOptions(countyId, e.currentTarget.name)
// }

if(!editMode) {
if(e.currentTarget.name === 'sub_county_id' && !countyId) setSubCountyOptions([])
Expand Down
6 changes: 3 additions & 3 deletions pages/facilities/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ function FacilityHome(props) {
const router = useRouter()




// const facilities = props?.data?.results
const filters = props?.filters

Expand Down Expand Up @@ -785,6 +783,8 @@ function FacilityHome(props) {
}
onSubmit={(values) => {

router.refresh()

const query = values.q.split(' ').join('+');
const href = new URL(window.location.href)
const filter = href.searchParams.get('filter')
Expand Down Expand Up @@ -1257,7 +1257,7 @@ function FacilityHome(props) {

export async function getServerSideProps(ctx) {


ctx?.res?.setHeader(
'Cache-Control',
'no-cache, no-store, max-age=0'
Expand Down

0 comments on commit a2e9c2c

Please sign in to comment.