Skip to content

Commit

Permalink
handle undefined query
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Feb 25, 2022
1 parent 2527fbf commit 2884071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/apps/discovery/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ define([
this.routerNavigate('PaperSearchForm');
},

feedbackPage: function(subview, query) {
feedbackPage: function(subview, query = '') {
// if necessary encode ampersands present in the bibcode
query = query.replace('&', encodeURIComponent('&'));
const params = new URLSearchParams(query);
Expand Down

0 comments on commit 2884071

Please sign in to comment.