diff --git a/src/components/product/ProductImages.tsx b/src/components/product/ProductImages.tsx
index 21ee70355..867d34462 100644
--- a/src/components/product/ProductImages.tsx
+++ b/src/components/product/ProductImages.tsx
@@ -121,7 +121,7 @@ export default function ProductImages({ onChangeOneSetOfImages }: Props) {
};
}) || []
);
- }, [values.productVariants.variants]);
+ }, [values.productVariants?.variants]);
const TabsContent = useCallback(({ children }: { children: ReactNode }) => {
return
{children}
;
}, []);
diff --git a/src/components/product/ProductInformation.tsx b/src/components/product/ProductInformation.tsx
index 6bacb8690..1e5dcafc8 100644
--- a/src/components/product/ProductInformation.tsx
+++ b/src/components/product/ProductInformation.tsx
@@ -68,7 +68,7 @@ const AddAttributesContainer = ({
const { values } = useCreateForm();
const elements: ElementType[] = useMemo(
- () => values?.productInformation?.attributes,
+ () => values?.productInformation?.attributes || [],
[values?.productInformation?.attributes]
);