Fix non-existent term

This commit is contained in:
kyleplo 2018-08-22 14:50:19 -04:00 committed by GitHub
parent d2721f0bbc
commit d7feb51695
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ class Search extends React.Component {
while (mode.indexOf('/') > -1) {
mode = mode.substring(0, mode.indexOf('/'));
}
while (term.indexOf('&') > -1) {
while (mode.indexOf('&') > -1) {
mode = mode.substring(0, mode.indexOf('&'));
}
mode = decodeURIComponent(mode.split('+').join(' '));