Shopware: Can not create variantes "(intermediate value).map is not a function"

Viewed 49

Variant creation stucked. Console shows:

Uncaught (in promise) TypeError: (intermediate value).map is not a function

Degging deeper with the debugger variantRestrictions is broken in some way.

1 Answers

In the database product.variant_restrictions is an empty JSON array []. If I change it to NULL it worked again.

You can fix it like this:

UPDATE product SET variant_restrictions = NULL WHERE variant_restrictions = '[]';
Related