Fix shadowing labels
This commit is contained in:
parent
8a6cd1ef1f
commit
afec633272
1 changed files with 16 additions and 12 deletions
|
@ -174,19 +174,23 @@ export function getProductUpdatePageFormData(
|
||||||
publicationDate: maybe(() => product.publicationDate, ""),
|
publicationDate: maybe(() => product.publicationDate, ""),
|
||||||
seoDescription: maybe(() => product.seoDescription, ""),
|
seoDescription: maybe(() => product.seoDescription, ""),
|
||||||
seoTitle: maybe(() => product.seoTitle, ""),
|
seoTitle: maybe(() => product.seoTitle, ""),
|
||||||
sku: maybe(() =>
|
sku: maybe(
|
||||||
|
() =>
|
||||||
product.productType.hasVariants
|
product.productType.hasVariants
|
||||||
? undefined
|
? undefined
|
||||||
: variants && variants[0]
|
: variants && variants[0]
|
||||||
? variants[0].sku
|
? variants[0].sku
|
||||||
: undefined
|
: undefined,
|
||||||
|
""
|
||||||
),
|
),
|
||||||
stockQuantity: maybe(() =>
|
stockQuantity: maybe(
|
||||||
|
() =>
|
||||||
product.productType.hasVariants
|
product.productType.hasVariants
|
||||||
? undefined
|
? undefined
|
||||||
: variants && variants[0]
|
: variants && variants[0]
|
||||||
? variants[0].quantity
|
? variants[0].quantity
|
||||||
: undefined
|
: undefined,
|
||||||
|
0
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue