Fix shadowing labels

This commit is contained in:
dominik-zeglen 2019-11-14 15:40:02 +01:00
parent 8a6cd1ef1f
commit afec633272

View file

@ -174,19 +174,23 @@ export function getProductUpdatePageFormData(
publicationDate: maybe(() => product.publicationDate, ""),
seoDescription: maybe(() => product.seoDescription, ""),
seoTitle: maybe(() => product.seoTitle, ""),
sku: maybe(() =>
sku: maybe(
() =>
product.productType.hasVariants
? undefined
: variants && variants[0]
? variants[0].sku
: undefined
: undefined,
""
),
stockQuantity: maybe(() =>
stockQuantity: maybe(
() =>
product.productType.hasVariants
? undefined
: variants && variants[0]
? variants[0].quantity
: undefined
: undefined,
0
)
};
}