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

Cloning a product variant generates error that breaks the UI #6148

Closed
3 tasks done
willopez opened this issue Mar 13, 2020 · 0 comments · Fixed by #6149
Closed
3 tasks done

Cloning a product variant generates error that breaks the UI #6148

willopez opened this issue Mar 13, 2020 · 0 comments · Fixed by #6149
Assignees

Comments

@willopez
Copy link
Member

Prerequisites

  • Are you running the latest version?
  • Are you able to consistently reproduce the issue?
  • Did you search the issue queue for existing issue? Search issues

Issue Description

When a product variant is cloned, the UI breaks with the following error coming from the API:

1: {message: "Float cannot represent non numeric value: "null"", locations: [{line: 67, column: 3}],…}
message: "Float cannot represent non numeric value: "null""
locations: [{line: 67, column: 3}]
0: {line: 67, column: 3}
path: ["product", "variants", 1, "options", 0, "length"]
0: "product"
1: "variants"
2: 1
3: "options"
4: 0
5: "length"
extensions: {code: "INTERNAL_SERVER_ERROR",…}
code: "INTERNAL_SERVER_ERROR"
exception: {stacktrace: ["TypeError: Float cannot represent non numeric value: "null"",…]}
stacktrace: ["TypeError: Float cannot represent non numeric value: "null"",…]
0: "TypeError: Float cannot represent non numeric value: "null""
1: "    at GraphQLScalarType.serializeFloat [as serialize] (/usr/local/src/app/node_modules/graphql/type/scalars.js:96:11)

Steps to Reproduce

Please provide starting context, i.e. logged in as a user, configure a particular payment method.

  1. Create a new product and variant
  2. Click on the "Duplicate" link
  3. Reload page and observe page load with no data, see image below for details

Screen Shot 2020-03-13 at 3 17 05 PM

Possible Solution

Looks like the price is not being cloned correctly

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 a pull request may close this issue.

2 participants