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 Function hangs/throws error #1086

Closed
fusionetics-cecelia opened this issue Oct 4, 2019 · 1 comment
Closed

Search Function hangs/throws error #1086

fusionetics-cecelia opened this issue Oct 4, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@fusionetics-cecelia
Copy link

Describe the bug
When using the search function, if a search term is entered and then the 'Enter' key is pressed, the console throws a Type error and the search hangs. This doesn't seem to happen if you simply type the search term and then wait for results to appear without hitting 'Enter'. This occurs on the wiki.js documentation page as well.

To Reproduce
Steps to reproduce the behavior:

  1. Go to wiki homepage
  2. Click on search bar and type in a term then press the 'Enter' key
  3. See error
app.9a3d737249f89b3b4388.js:89 
TypeError: Cannot read property 'length' of undefined
    at a.t (ui-extra.1b40d9638c73b36c5fef.js:2)
    at a.t._render (app.9a3d737249f89b3b4388.js:89)
    at a.i (app.9a3d737249f89b3b4388.js:89)
    at vn.get (app.9a3d737249f89b3b4388.js:89)
    at vn.run (app.9a3d737249f89b3b4388.js:89)
    at mn (app.9a3d737249f89b3b4388.js:89)
    at Array.<anonymous> (app.9a3d737249f89b3b4388.js:89)
    at Zt (app.9a3d737249f89b3b4388.js:89)

Expected behavior
Search results to appear regardless of whether user hits the 'Enter' key

Screenshots
Video of behavior: https://drive.google.com/file/d/1Jmf3VEnBh6ni5c0Q2B5XmHh1zo2C7NQi/view

Host Info (please complete the following information):

  • OS: Windows 10/Chrome Browser
  • Wiki.js version: 2.0.0-beta.303
  • Database engine: N/A

Additional context
This occurs at https://docs.requarks.io/ as well as on our own wiki page.

@NGPixel NGPixel added the bug Something isn't working label Oct 6, 2019
NGPixel added a commit that referenced this issue Nov 2, 2019
@NGPixel
Copy link
Member

NGPixel commented Nov 2, 2019

Fixed by d69dde1

@NGPixel NGPixel closed this as completed Nov 2, 2019
jionggyu pushed a commit to jionggyu/wiki-2.5.302-patch that referenced this issue Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants