From 09f88f2167bf4821334331baa4cb491eaa57475d Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Fri, 15 Feb 2019 08:34:24 +0000 Subject: Merge branch '57692-fix-rendering-of-none-any' into 'master' Resolve "Search bar rendering `none` and `any` as users" Closes #57692 See merge request gitlab-org/gitlab-ce!25235 (cherry picked from commit 4b50e4d5edf6f89a4833b402d97edf45cdc9eac1) 65f534da Fix rendering of user token special values --- app/assets/javascripts/filtered_search/filtered_search_visual_tokens.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/assets') 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 fba31f16d65..5090b0bdc3c 100644 --- a/app/assets/javascripts/filtered_search/filtered_search_visual_tokens.js +++ b/app/assets/javascripts/filtered_search/filtered_search_visual_tokens.js @@ -163,7 +163,7 @@ export default class FilteredSearchVisualTokens { const tokenValueElement = tokenValueContainer.querySelector('.value'); tokenValueElement.innerText = tokenValue; - if (tokenValue === 'none' || tokenValue === 'any') { + if (['none', 'any'].includes(tokenValue.toLowerCase())) { return; } -- cgit v1.2.1