Skip to content

Commit

Permalink
Merge pull request #443 from ymaheshwari1/fix/search-draft-count
Browse files Browse the repository at this point in the history
Improved: searching on draft detail page to make exact search using sku
  • Loading branch information
ymaheshwari1 authored Sep 18, 2024
2 parents e8e463f + 51afc23 commit 254b5f3
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 254b5f3

Please sign in to comment.