Custom field with entity ProductVariant
throws Cannot set properties of null (setting 'taxCategory')
when value is empty
#2723
Labels
type: bug 🐛
Something isn't working
Describe the bug
When you are adding a custom field as
ProductVariant
entity it throws an error ``Cannot set properties of null (setting 'taxCategory')` when you are leaving this value empty (for example when creating a new order line).config.customFields.OrderLine.push({ name: 'relatedVariant', type: 'relation', entity: ProductVariant, });
To Reproduce
Steps to reproduce the behavior:
relatedVariant
valueAdd item to order
Expected behavior
I would expect that we will not receive this error because the field it not required in the configuration and it should be possible to skip it.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: