diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-03-17 00:09:19 +0000 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-03-17 00:09:19 +0000 |
commit | e5dfcdf26875a2294453cc58d8bbe79f69f37a53 (patch) | |
tree | 9e7461430887f905e1a7d6d25b293a80e53bdeff /app/assets | |
parent | 0fa511fdeb5e1089dbd82435cb1397b0d433b00b (diff) | |
parent | 593d85f3539f1efd76c68411cdf454e7cc425133 (diff) | |
download | gitlab-ce-e5dfcdf26875a2294453cc58d8bbe79f69f37a53.tar.gz |
Merge branch 'fix-double-click-token-name' into 'master'
Fix double click token name
Closes #29599
See merge request !10023
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/filtered_search/filtered_search_visual_tokens.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/filtered_search/filtered_search_visual_tokens.js b/app/assets/javascripts/filtered_search/filtered_search_visual_tokens.js index e48d7196c7b..a5657fc8720 100644 --- a/app/assets/javascripts/filtered_search/filtered_search_visual_tokens.js +++ b/app/assets/javascripts/filtered_search/filtered_search_visual_tokens.js @@ -159,7 +159,7 @@ class FilteredSearchVisualTokens { const name = token.querySelector('.name'); const value = token.querySelector('.value'); - if (token.classList.contains('filtered-search-token')) { + if (token.classList.contains('filtered-search-token') && value) { FilteredSearchVisualTokens.addFilterVisualToken(name.innerText); input.value = value.innerText; } else { |