Skip to content

Commit

Permalink
Reverted: unwanted console in the code, and the type of new product v…
Browse files Browse the repository at this point in the history
…ar (#528)
  • Loading branch information
amansinghbais committed Dec 24, 2024
1 parent 8498811 commit 296833f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/views/HardCountDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ async function addProductToItemsList() {
async function findProductFromIdentifier(scannedValue: string ) {
const product = await store.dispatch("product/fetchProductByIdentification", { scannedValue })
let newItem = "";
let newItem = {} as any;
if(product?.productId) newItem = await addProductToCount(product.productId)
setTimeout(() => {
Expand All @@ -433,7 +433,6 @@ async function addProductToCount(productId: any) {
resp = await CountService.fetchCycleCountItems({ inventoryCountImportId: cycleCount.value.inventoryCountImportId, importItemSeqId, pageSize: 1 })
if(!hasError(resp)) {
console.log(resp);
newProduct = resp.data[0];
} else {
throw resp;
Expand Down

0 comments on commit 296833f

Please sign in to comment.