OpenBEL/belmgr

Crash when /api/nanopubs returns 404

Closed this issue · 1 comments

Getting nanopubs in search.js doesn't correctly handle the HTTP 404 case.

Search error  TypeError: Cannot read property 'current_page' of undefined at http://localhost:9000/dist/pages/search.js:108:40

Attaching Chrome devtools console output.
screen shot 2016-06-06 at 1 31 47 pm
screen shot 2016-06-06 at 1 31 56 pm

Okay - I'll fix before tmrw