Ensure search val is defined.
This commit is contained in:
parent
995d4df151
commit
f1bb7ddfa7
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue