Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented: void label functionality from the order lookup page (#760) #768

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

amansinghbais
Copy link
Contributor

Related Issues

#760

Short Description and Why It's Useful

Added support for voiding tracking label from order lookup page.

Screenshots of Visual Changes before/after (If There Are Any)

Screenshot from 2024-09-18 16-44-47
Screenshot from 2024-09-18 16-45-01

Contribution and Currently Important Rules Acceptance

return orderSegmentInfo
}, {}) : []

let orderShipmentPackages = []
const shipmentIds = [] as any;
Object.values(orderRouteSegmentInfo).map((routes: any) => routes.map((route: any) => {shipmentIds.push(route.shipmentId)}));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it be more efficient if we use flatMap here?


const shipmentPackages = {} as any;

orderShipmentPackages.map((shipmentPackage: any) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can using reduce here increase the clarity?

@ravilodhi ravilodhi merged commit b94e8ea into hotwax:main Sep 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants