The Wayback Machine - https://web.archive.org/web/20201208045259/https://github.com/appbaseio/reactivesearch/issues/1533
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

TypeError populating suggestions using Datasearch component #1533

Open
sundeepkaranam opened this issue Aug 23, 2020 · 0 comments
Open

TypeError populating suggestions using Datasearch component #1533

sundeepkaranam opened this issue Aug 23, 2020 · 0 comments
Labels
bug

Comments

@sundeepkaranam
Copy link

@sundeepkaranam sundeepkaranam commented Aug 23, 2020

Affected Projects
I am using React

Library Version: x.y.z
Reactivesearch Version: 3.12.2.

Describe the bug

TypeError: Cannot read property 'replace' of null
    at replaceDiacritics (suggestions.js?da4f:formatted:62)
    at eval (suggestions.js?da4f:formatted:79)
    at Array.some (<anonymous>)
    at populateSuggestionsList (suggestions.js?da4f:formatted:78)
    at eval (suggestions.js?da4f:formatted:126)
    at Array.some (<anonymous>)
    at parseField (suggestions.js?da4f:formatted:125)
    at eval (suggestions.js?da4f:formatted:115)
    at Array.forEach (<anonymous>)
    at parseField (suggestions.js?da4f:formatted:114)

To Reproduce

Steps to reproduce the behaviour:
I have docs whose data will be like
Here is an example of 3 docs.
{
my_field :["aaa.bbb",bbb.ccc"]
}
{
my_field:[]
}
{
my_field:["xxx":"yyy"]
}

My search query after matching these docs should show the suggestions as
1.aaa.bbb
2.bbb.ccc
3.xxx.yyy

But, i am getting the above error.

Expected behavior

Screenshots

Desktop (please complete the following information):
All

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context

@sundeepkaranam sundeepkaranam added the bug label Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.