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

Search bar doesn't work #3

Closed
arturomoncadatorres opened this issue Dec 30, 2020 · 1 comment
Closed

Search bar doesn't work #3

arturomoncadatorres opened this issue Dec 30, 2020 · 1 comment

Comments

@arturomoncadatorres
Copy link
Owner

Console shows the following error:

Uncaught TypeError: t.toLowerCase is not a function
    at lunr.min.js:7
    at Array.map (<anonymous>)
    at Function.t.tokenizer (lunr.min.js:7)
    at t.Index.<anonymous> (lunr.min.js:7)
    at Array.forEach (<anonymous>)
    at t.Index.add (lunr.min.js:7)
    at lunr-feed.js:12
@arturomoncadatorres
Copy link
Owner Author

Fixed by 4f94dd7.

Apparently, lunr search breaks if tags are plain numbers (as was the case with the tag 9748 for the LEGO set instructions). In the future, just avoid using numerical tags.

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