-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix: Ensure shipment includes tracking numbers from fulfillment #11775
base: develop
Are you sure you want to change the base?
fix: Ensure shipment includes tracking numbers from fulfillment #11775
Conversation
|
@ionutgaina is attempting to deploy a commit to the medusajs Team on Vercel. A member of the Team first needs to authorize it. |
tracking_url: "#", | ||
label_url: "#", | ||
})), | ||
labels: [...addedLabels, ...(fulfillment?.labels || [])], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Combines labels added through the form (addedLabels) with existing labels from fulfillment, if available
@@ -43,19 +43,21 @@ export function OrderCreateShipmentForm({ | |||
}) | |||
|
|||
const handleSubmit = form.handleSubmit(async (data) => { | |||
const addedLabels = data.labels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just separated the logic from the createShipment function to improve readability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @ionutgaina!
What: Added existing tracking numbers during shipment creation from the admin dashboard
Bug details: See #11160