diff --git a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/components/shared/DropdownSearch.jsx b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/components/shared/DropdownSearch.jsx index 37bbc3c538..d02a64f923 100644 --- a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/components/shared/DropdownSearch.jsx +++ b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/components/shared/DropdownSearch.jsx @@ -70,7 +70,7 @@ function DropdownSearch(props) { setTimeout(() => { if (value === '' && selectedOptions.length === 0) { const options = deselectedOptions.slice(0, defaultSliceValue); - const title = options.length > defaultSliceValue + const title = deselectedOptions.length != defaultSliceValue && options.length >= defaultSliceValue ? `Showing ${options.length} result${func.addPlurality(options.length)} only. (type more to refine results)` : "Showing all results"; const nestedOptions = [{ @@ -100,7 +100,7 @@ function DropdownSearch(props) { option[searchKey].match(filterRegex) ).slice(0, defaultSliceValue); - const title = resultOptions.length >= defaultSliceValue + const title = deselectedOptions.length != defaultSliceValue && resultOptions.length >= defaultSliceValue ? `Showing ${resultOptions.length} result${func.addPlurality(resultOptions.length)} only. (type more to refine results)` : "Showing all results";