diff --git a/src/webviews/apps/shared/components/search/search-box.ts b/src/webviews/apps/shared/components/search/search-box.ts
index b83e7504761ff..23c5e1693e8eb 100644
--- a/src/webviews/apps/shared/components/search/search-box.ts
+++ b/src/webviews/apps/shared/components/search/search-box.ts
@@ -153,7 +153,7 @@ export class GlSearchBox extends GlElement {
resultsLoaded = false;
get hasResults() {
- return this.total > 1;
+ return this.total >= 1;
}
@query('gl-search-input')
@@ -221,6 +221,9 @@ export class GlSearchBox extends GlElement {
}
private get resultsHtml() {
+ if (!this.value) {
+ return html``;
+ }
if (this.searching) {
return html`Searching...