Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home route property search responds with no records #76

Open
hanleymark opened this issue Aug 3, 2023 · 0 comments
Open

Home route property search responds with no records #76

hanleymark opened this issue Aug 3, 2023 · 0 comments

Comments

@hanleymark
Copy link
Collaborator

On search-filter branch there is a problem with the home route search returning no results. This causes an undefined object error when the empty property listings are displayed.

The problem is caused by the function parseSearchParamObject (params: any, filters: Array) in utils/filterHelper.ts.

The function is passed an empty params object as the function was developed first for the filtered search page.

To solve this, the redirect function in the SearchPreferencesForm.tsx component needs to get all property types from the DB and add them as to the query string parameters in the router.push call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant