Skip to content

Commit

Permalink
fix: crash in create product (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertfolch-redeemeum authored Jun 21, 2023
1 parent bb73501 commit 274a938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/product/ProductImages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function ProductImages({ onChangeOneSetOfImages }: Props) {
!hasVariants || values.imagesSpecificOrAll?.value === "all";
const tabsData = useMemo(() => {
return (
values.productVariants.variants?.map((variant, index) => {
values.productVariants?.variants?.map((variant, index) => {
return {
id: variant.name || index + "",
title: variant.name || `Variant ${index}`,
Expand Down

0 comments on commit 274a938

Please sign in to comment.