Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Johnson <bryce@gitlab.com>2016-10-25 13:46:28 +0300
committerBryce Johnson <bryce@gitlab.com>2016-10-25 13:46:28 +0300
commitf1bb7ddfa76e73fc67922637bbfaf17d83df7ddc (patch)
treeeddeb07b91405c3843566d0a9a18a88eec033cc8
parent995d4df151621a79e1a45bfdf8917038511870ff (diff)
Ensure search val is defined.
-rw-r--r--app/assets/javascripts/issuable.js.es62
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;