Commit f1bb7ddf authored by Bryce Johnson's avatar Bryce Johnson

Ensure search val is defined.

parent 995d4df1
......@@ -54,7 +54,7 @@
},
maybeFocusOnSearch: function() {
const currentSearchVal = Issuable.searchState.current;
if (currentSearchVal !== '') {
if (currentSearchVal && currentSearchVal !== '') {
const queryLength = currentSearchVal.length;
const $searchInput = Issuable.searchState.elem;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment