From f3dc421671adfea38201f1a9953bb632827dca8f Mon Sep 17 00:00:00 2001 From: PromInc Date: Mon, 30 Jun 2025 15:05:32 -0500 Subject: [PATCH] Don't Render non-clicable Link Autocomplete will render a non-clickable link on a no results search. --- view/frontend/web/js/template/autocomplete/products.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/view/frontend/web/js/template/autocomplete/products.js b/view/frontend/web/js/template/autocomplete/products.js index 31a47d295..358b08343 100644 --- a/view/frontend/web/js/template/autocomplete/products.js +++ b/view/frontend/web/js/template/autocomplete/products.js @@ -34,6 +34,10 @@ define([], function () { }, getFooterHtml: function ({html, ...resultDetails}) { + if( Object.keys(resultDetails).length < 1 ) { + return html; + } + return html``;