diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-10-25 13:46:28 +0300 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-10-25 13:46:28 +0300 |
commit | f1bb7ddfa76e73fc67922637bbfaf17d83df7ddc (patch) | |
tree | eddeb07b91405c3843566d0a9a18a88eec033cc8 | |
parent | 995d4df151621a79e1a45bfdf8917038511870ff (diff) |
Ensure search val is defined.
-rw-r--r-- | app/assets/javascripts/issuable.js.es6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/issuable.js.es6 b/app/assets/javascripts/issuable.js.es6 index 8c3c2d54c1a..54056ac50c8 100644 --- a/app/assets/javascripts/issuable.js.es6 +++ b/app/assets/javascripts/issuable.js.es6 @@ -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; |