From d7feb5169500f44ba6bf7ab61579acf26ccb6fc0 Mon Sep 17 00:00:00 2001 From: kyleplo <31634240+kyleplo@users.noreply.github.com> Date: Wed, 22 Aug 2018 14:50:19 -0400 Subject: [PATCH] Fix non-existent term --- src/views/search/search.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/search/search.jsx b/src/views/search/search.jsx index 48dcbafdf..d35f2c937 100644 --- a/src/views/search/search.jsx +++ b/src/views/search/search.jsx @@ -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(' '));