aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/reducers
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-01-06 12:11:05 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-01-06 12:11:05 +0100
commit95041dffbd23fe81802efd5fb25cffe492cdb551 (patch)
treecb66d325fb5d16d8b7fa0f14c91ad17dd4ff7c6c /src/client/react/reducers
parent4ca30295d7d9f3dd7ba2e105952ff627f6b702a4 (diff)
Revert "Add strict typing"
This reverts commit 4ca30295d7d9f3dd7ba2e105952ff627f6b702a4.
Diffstat (limited to 'src/client/react/reducers')
-rw-r--r--src/client/react/reducers/search.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/react/reducers/search.ts b/src/client/react/reducers/search.ts
index 470e650..658d3ca 100644
--- a/src/client/react/reducers/search.ts
+++ b/src/client/react/reducers/search.ts
@@ -61,7 +61,7 @@ const search = (state = DEFAULT_STATE, action: Action): State => {
if (isExactMatch) return state;
const prevSelectedResult = state.selectedResult;
- const prevSelectedResultIndex = prevSelectedResult ? results.indexOf(prevSelectedResult) : -1;
+ const prevSelectedResultIndex = results.indexOf(prevSelectedResult);
let nextSelectedResultIndex =
prevSelectedResultIndex + action.relativeChange;