From 1a080cd0057dfc6180f97b8e98b315f06537212a Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Mon, 13 Jan 2025 11:03:31 +0530 Subject: [PATCH 1/2] Fixed: UI of the match product modal on different scenarios (#528) --- src/components/MatchProductModal.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MatchProductModal.vue b/src/components/MatchProductModal.vue index 75d59ea3..e410bbfe 100644 --- a/src/components/MatchProductModal.vue +++ b/src/components/MatchProductModal.vue @@ -17,7 +17,7 @@ {{ translate("Searching for", { queryString }) }} - -
-

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

+
+

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

empty-state @@ -95,7 +95,6 @@ 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()) { @@ -121,7 +120,6 @@ async function getProducts() { logger.error("Failed to fetch products", err) } products.value = productsList - prevSearchedQuery.value = queryString.value isLoading.value = false; } function closeModal(payload = {}) {