Skip to content

Commit

Permalink
Merge pull request #340 from amansinghbais/339-toast-message-issue
Browse files Browse the repository at this point in the history
Fixed: toast message when closing scanner without scanning (#339)
  • Loading branch information
ymaheshwari1 authored Feb 22, 2024
2 parents ff64b95 + de6beeb commit 78428d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/views/PurchaseOrderDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ export default defineComponent({
});
modal.onDidDismiss()
.then((result) => {
this.updateProductCount(result.role);
if (result.role) {
this.updateProductCount(result.role);
}
})
return modal.present();
},
Expand Down
4 changes: 3 additions & 1 deletion src/views/ReturnDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ export default defineComponent({
});
modal.onDidDismiss()
.then((result) => {
this.updateProductCount(result.role);
if(result.role) {
this.updateProductCount(result.role);
}
});
return modal.present();
},
Expand Down
4 changes: 3 additions & 1 deletion src/views/ShipmentDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ export default defineComponent({
});
modal.onDidDismiss()
.then((result) => {
this.updateProductCount(result.role);
if(result.role) {
this.updateProductCount(result.role);
}
});
return modal.present();
},
Expand Down

0 comments on commit 78428d9

Please sign in to comment.