Skip to content

Commit

Permalink
Merge pull request #597 from amansinghbais/#528-fixes
Browse files Browse the repository at this point in the history
Fixed: wrong button getting displayed in case of unmatched product (#528)
  • Loading branch information
ymaheshwari1 authored Jan 9, 2025
2 parents 40af5f4 + 37f7847 commit 7420d5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/HardCountDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<!--Product details-->
<main :class="itemsList?.length ? 'product-detail' : ''">
<template v-if="itemsList?.length">
<template v-if="itemsList?.length && Object.keys(currentProduct)?.length">
<div class="product" @scroll="onScroll">
<div class="image ion-padding-top" v-for="item in itemsList" :key="item.importItemSeqId || item.scannedId" :data-product-id="item.productId" :data-seq="item.importItemSeqId" :id="isItemAlreadyAdded(item) ? `${item.productId}-${item.importItemSeqId}` : item.scannedId" :data-isMatching="item.isMatching" :data-scanned-id="item.scannedId">
<Image :src="getProduct(item.productId)?.mainImageUrl" />
Expand Down
2 changes: 2 additions & 0 deletions src/views/ProductItemList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ async function navigateToDetail(item: any) {
const element = document.getElementById(isItemAlreadyAdded(item) ? `${item.productId}-${item.importItemSeqId}` : item.scannedId);
if (element) {
element.scrollIntoView({ behavior: 'smooth' });
} else {
store.dispatch("product/currentProduct", item);
}
}, 0);
}
Expand Down

0 comments on commit 7420d5e

Please sign in to comment.