Skip to content
Snippets Groups Projects
Commit f1bb7ddf authored by Bryce Johnson's avatar Bryce Johnson
Browse files

Ensure search val is defined.

parent 995d4df1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment