-
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
Add metadata to orders #688
Conversation
Task linked: CU-7pqnkd Add metadata to order views |
b417221
to
6bb2765
Compare
@@ -235,7 +235,7 @@ export function hasErrors(errorList: UserError[] | null): boolean { | |||
export function getMutationState( | |||
called: boolean, | |||
loading: boolean, | |||
...errorList: UserError[][] | |||
...errorList: any[][] |
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.
Why any?
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.
Well, we only need info how many
errors were returned, it's no use for us to know what
errors
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.
What do we gain from turning this into any
? What if we wanted to explicitly forbid using any
tomorrow to get stronger type checking?
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 have the the same question as @orzechdev. Besides that - LGTM
6bb2765
to
9ff8f0f
Compare
I want to merge this change because it adds metadata editor to order view.
PR intended to be tested with API branch: master
Pull Request Checklist
Test environment config
API_URI=https://master.staging.saleor.rocks/graphql/