diff --git a/src/components/MatchProductModal.vue b/src/components/MatchProductModal.vue index 93d9e461..75d59ea3 100644 --- a/src/components/MatchProductModal.vue +++ b/src/components/MatchProductModal.vue @@ -42,7 +42,7 @@
-

{{ translate("No results found for", { queryString }) }}

+

{{ translate("No results found for", { queryString: prevSearchedQuery }) }}

empty-state @@ -95,6 +95,7 @@ let queryString = ref(''); const isSearching = ref(false); const selectedProductId = ref("") as Ref; const isLoading = ref(false); +const prevSearchedQuery = ref(""); async function handleSearch() { if(!queryString.value.trim()) { @@ -120,6 +121,7 @@ async function getProducts() { logger.error("Failed to fetch products", err) } products.value = productsList + prevSearchedQuery.value = queryString.value isLoading.value = false; } function closeModal(payload = {}) {