Skip to content

Commit

Permalink
Update productId
Browse files Browse the repository at this point in the history
  • Loading branch information
akong-sf committed Sep 21, 2023
1 parent 6729249 commit 9b399b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class ScanBarcodeLookup extends LightningElement {
if (data) {
const { edges } = data.uiapi.query.Product2;
const product = edges?.shift();
this.productId = product && product.node.Id;
this.productId = product?.node?.Id;
} else {
this.productId = "";
}
Expand Down

0 comments on commit 9b399b5

Please sign in to comment.