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

ProductVariant optionIds must include one optionId from each of the groups #2326

Closed
zehawki opened this issue Jul 31, 2023 · 0 comments
Closed
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@zehawki
Copy link

zehawki commented Jul 31, 2023

Describe the bug
When saving an existing variant, I get the error: ProductVariant optionIds must include one optionId from each of the groups

To Reproduce
Steps to reproduce the behavior:

  1. Fresh install, start the admin UI, loaded with default dataset
  2. Under inventory, click on Modern chair /admin/catalog/inventory/54
  3. Click on Manage Variants /admin/catalog/inventory/54/manage-variants
  4. Create product option group
  5. Assign new product option to existing product variant and save - then this error props up
  6. Here's how it looks for me right now:

image

First I create a new option: Size. I assigned Size to the 3 existing variants, and saved - no issue.
Then I created another option: Type. I assigned Type to the 3 existing variants, and tried to save. When saving any row, I hit the error.
I deleted Type and created another option: Extras. I assigned Extra to an existing variants, and tried to save. When saving I hit the same error.
Then I went browser back to the inventory item page and then a browser forward. Then time save on the line item is successful.

Expected behavior
Should save the product variant without issue.

Environment (please complete the following information):

  • @vendure/core version: v2.0.5
  • Nodejs version:
  • Database (mysql/postgres etc): Postgres
@zehawki zehawki added the type: bug 🐛 Something isn't working label Jul 31, 2023
@michaelbromley michaelbromley moved this to 📋 Backlog in Vendure OS Roadmap Aug 11, 2023
@michaelbromley michaelbromley moved this from 📋 Backlog to 🏗 In progress in Vendure OS Roadmap Aug 11, 2023
@michaelbromley michaelbromley moved this from 🏗 In progress to ✅ Done in Vendure OS Roadmap Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
Status: 🚀 Shipped
Development

No branches or pull requests

2 participants