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

Query is undefined in controller #61

Open
OisinFoley opened this issue Sep 27, 2021 · 0 comments
Open

Query is undefined in controller #61

OisinFoley opened this issue Sep 27, 2021 · 0 comments

Comments

@OisinFoley
Copy link

Hi all,

Thanks for the great work so far! - Having trouble getting this to work.
I installed the package, made my component searchable and then used the code snippet from this controller file on master.

However, when the incoming request comes in, the if (ctx.query._q) { expression causes a crash, becase the query prop is undefined on the ctx object.

Any advice on how I can fix this?

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