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

Remove unused shipment status 'id' field #11

Closed
wants to merge 2 commits into from

Conversation

tomwheeler
Copy link
Collaborator

@tomwheeler tomwheeler commented Sep 9, 2024

What was changed

I removed the shipment status ID.

Why?

When testing a PR #10, submitted by Phil Prasek, I found that Svelte issued a warning:

/Users/twheeler/projects/active/oms/reference-app-orders-web/src/lib/components/shipment-status.svelte:1:29 Shipment_status has unused export property 'id'. If it is for external reference only, please consider using `export const id`

One of the changes in that PR eliminated the use of the shipment status ID field. Since the field is no longer being used, this PR removes that field altogether.

Checklist

  1. How was this tested:

I observed the warning before the change. I made the change and then observed that the warning disappeared. In either case, I was able to successfully submit and process both single- and multi-item orders.

  1. Any docs updates needed?

No

@tomwheeler tomwheeler marked this pull request as ready for review September 9, 2024 23:11
@prasek prasek self-requested a review September 10, 2024 00:50
Copy link
Contributor

@prasek prasek left a comment

Choose a reason for hiding this comment

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

@tomwheeler think we can get rid of id here and cleanup fulfillments.svelte since when the event listener got moved out it's not used here anymore.

@tomwheeler tomwheeler changed the title define unused export property 'id' as a constant Remove unused shipment status 'id' field Sep 10, 2024
@Alex-Tideman
Copy link
Contributor

I removed the id prop in both places, we can close this.

@Alex-Tideman Alex-Tideman deleted the tomwheeler-redefine-shipment-status-id branch September 10, 2024 14:43
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.

3 participants