Skip to content

Commit

Permalink
Improved: searching on draft detail page to make exact search using s…
Browse files Browse the repository at this point in the history
…ku as when using like-wise searching, if the sku searched is a subset of another sku then the results are displayed as expected
  • Loading branch information
ymaheshwari1 committed Sep 18, 2024
1 parent e8e463f commit 51afc23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/DraftDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ async function findProduct() {
try {
const resp = await ProductService.fetchProducts({
"filters": ['isVirtual: false', `sku: *${queryString.value}*`],
"filters": ['isVirtual: false', `sku: ${queryString.value}`], // Made exact searching as when using fuzzy searching the products are not searched as expected
"viewSize": 1 // as we only need a single record
})
if (!hasError(resp) && resp.data.response?.docs?.length) {
Expand Down

0 comments on commit 51afc23

Please sign in to comment.