diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-08-16 05:47:09 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-08-16 05:47:09 +0000 |
| commit | 6d302bb338e26810a7f90326b84086217f1f4ae0 (patch) | |
| tree | 75892386f2a0faf8a75817c627deb626f938d6a9 /src-migrate/modules/product-detail/components | |
| parent | 5c40f27bb865141a0c4086f03efa5b157b660f6d (diff) | |
| parent | f19bed80a5711d2904745b1dff283d7936337b06 (diff) | |
Merged in bug-product (pull request #245)
<iman> update error code
Diffstat (limited to 'src-migrate/modules/product-detail/components')
| -rw-r--r-- | src-migrate/modules/product-detail/components/Information.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-migrate/modules/product-detail/components/Information.tsx b/src-migrate/modules/product-detail/components/Information.tsx index 52eb6b88..75ae3c41 100644 --- a/src-migrate/modules/product-detail/components/Information.tsx +++ b/src-migrate/modules/product-detail/components/Information.tsx @@ -19,7 +19,7 @@ type Props = { const Information = ({ product }: Props) => { const querySLA = useQuery<IProductVariantSLA>({ - queryKey: ['variant-sla', product.variants[0].id], + queryKey: ['variant-sla', product.variants[0]?.id], queryFn: () => getVariantSLA(product.variants[0].id), enabled: product.variant_total === 1 }) |
