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

Relation custom field is broken on V2 (Related Products) #2249

Open
nonlinearcom opened this issue Jun 26, 2023 · 0 comments
Open

Relation custom field is broken on V2 (Related Products) #2249

nonlinearcom opened this issue Jun 26, 2023 · 0 comments
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@nonlinearcom
Copy link

Relation custom field seems to be broken on V2. After adding related products the update button remains disabled.

customFields: {
Product: [
    {
    name: 'relatedProducts',
    label: [{ languageCode: LanguageCode.en, value: "Related Products" }],
    type: 'relation',
    entity: Product,
    list: true,
    ui: { component: 'product-multi-form-input', selectionMode: 'product' }
     },
  ],
}

Then, if we edit any other field and try to update we get this error:

Variable "$input" got invalid value null at "input.customFields.relatedProductsIds[0]"; Expected non-nullable type "ID!" not to be null.
  • @vendure/core 2.0.2
  • Nodejs version 18.16
  • Database postgres

related to #2178

@nonlinearcom nonlinearcom added the type: bug 🐛 Something isn't working label Jun 26, 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
None yet
Development

No branches or pull requests

2 participants