-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Change usages of order error order line prop #1175
Change usages of order error order line prop #1175
Conversation
@@ -430,7 +430,7 @@ const OrderFulfillPage: React.FC<OrderFulfillPageProps> = props => { | |||
!!errors?.find( | |||
err => | |||
err.warehouse === warehouse.id && | |||
err.orderLine === line.id && | |||
err.orderLines[0] === line.id && |
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.
I'm pretty sure you should search in whole array, not just 0th index
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.
Jus to chip in - this is a very temporary workaround to make backend changes mergeable and further frontend implementation will be worked on immediately after this, but I agree this is a very low-effort change so let's change it now
@@ -430,7 +430,7 @@ const OrderFulfillPage: React.FC<OrderFulfillPageProps> = props => { | |||
!!errors?.find( | |||
err => | |||
err.warehouse === warehouse.id && | |||
err.orderLine === line.id && | |||
err.orderLines[0] === line.id && |
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.
Jus to chip in - this is a very temporary workaround to make backend changes mergeable and further frontend implementation will be worked on immediately after this, but I agree this is a very low-effort change so let's change it now
Task linked: SALEOR-3599 Change usages of orderLine to orderLines |
I want to merge this change because it uses schema changes to match this PR
PR intended to be tested with API branch:
Screenshots
Pull Request Checklist
[data-test-id]
are added for new elementsTest environment config
API_URI=https://saleor-2294-update-draft-order-validation.api.saleor.rocks/graphql/