From b324dd2e42a983e124d6e659abff54cf9bb77af3 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Wed, 18 Dec 2024 12:20:03 +0530 Subject: [PATCH] Fixed: null going in the list of shipping label pdf url array for print shipping label (#878) --- src/components/OrderLookupLabelActionsPopover.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/OrderLookupLabelActionsPopover.vue b/src/components/OrderLookupLabelActionsPopover.vue index 01bd8e6b..6f28e8f2 100644 --- a/src/components/OrderLookupLabelActionsPopover.vue +++ b/src/components/OrderLookupLabelActionsPopover.vue @@ -52,7 +52,7 @@ export default defineComponent({ shipmentPackages.map((shipmentPackage: any) => { shipmentIds.push(shipmentPackage.shipmentId) - shippingLabelPdfUrls.push(shipmentPackage.labelImageUrl) + shipmentPackage.labelImageUrl && shippingLabelPdfUrls.push(shipmentPackage.labelImageUrl) }) await OrderService.printShippingLabel(shipmentIds, shippingLabelPdfUrls)