Always use productTemplateId when available, otherwise fallback to standard-product-template
This commit is contained in:
parent
f71035c099
commit
2960fcd520
|
@ -67,9 +67,7 @@ export const useProductTemplate = (
|
|||
const productType = product?.type;
|
||||
|
||||
const productTemplateIdToFind =
|
||||
productType === 'variable'
|
||||
? 'standard-product-template'
|
||||
: productTemplateId;
|
||||
productTemplateId || 'standard-product-template';
|
||||
|
||||
const productTypeToFind =
|
||||
productType === 'variable' ? 'simple' : productType;
|
||||
|
|
Loading…
Reference in New Issue