metacpan / metacpan-grep-front-end

Grep Front end code
GNU General Public License v3.0
13 stars 13 forks source link

JS error preventing display of results when using "in distro like" filter #44

Open Grinnz opened 6 years ago

Grinnz commented 6 years ago

Context

When doing a search like below I get the following JS error, and there is a count of results but no actual results displayed.

Uncaught TypeError: Cannot read property 'length' of undefined
    at b.verifySuggestionsFormat (20170714091316-8ee3b0e7a6641aed845899d0645808f6.js:80)
    at b.processResponse (20170714091316-8ee3b0e7a6641aed845899d0645808f6.js:80)
    at Object.<anonymous> (20170714091316-8ee3b0e7a6641aed845899d0645808f6.js:80)
    at j (20170714091316-8ee3b0e7a6641aed845899d0645808f6.js:1)
    at Object.fireWith [as resolveWith] (20170714091316-8ee3b0e7a6641aed845899d0645808f6.js:1)
    at x (20170714091316-8ee3b0e7a6641aed845899d0645808f6.js:1)
    at XMLHttpRequest.b (20170714091316-8ee3b0e7a6641aed845899d0645808f6.js:1)

https://grep.metacpan.org/search?q=caller%5C%28&qd=%5EMojo.*&qft=

atoomic commented 6 years ago
verifySuggestionsFormat:function(b){return b.length&&"string"==typeof b[0]?a.map(b,function(a){return{value:a,data:null}}):b}
atoomic commented 6 years ago

js error is fixed by 2aaec7122370c44bc472efc4708f5e3e64142a24 but this is not the source of the problem preventing results from being displayed