This pull request prevents empty arrays from being saved in product entries when the variants & variant options are empty.
This is helpful if you want to have both a Product Variants field and a normal Price field in the same blueprint. Currently, if you do that, it'll presume it's a variant product because the product_variants field has a value (albeit empty arrays).
This pull request prevents empty arrays from being saved in product entries when the variants & variant options are empty.
This is helpful if you want to have both a Product Variants field and a normal Price field in the same blueprint. Currently, if you do that, it'll presume it's a variant product because the
product_variants
field has a value (albeit empty arrays).Closes #892