summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2017-03-16 15:27:08 -0500
committerClement Ho <ClemMakesApps@gmail.com>2017-03-16 15:27:08 -0500
commit593d85f3539f1efd76c68411cdf454e7cc425133 (patch)
tree68c7e23d4524429b9508c9a44406eb2150b39a47 /app
parentfc1a192e801d8468d83302d8992feed051e88288 (diff)
downloadgitlab-ce-593d85f3539f1efd76c68411cdf454e7cc425133.tar.gz
Fix double click token namefix-double-click-token-name
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/filtered_search/filtered_search_visual_tokens.js2
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 {