diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-16 12:00:12 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-16 12:00:12 +0700 |
| commit | f19bed80a5711d2904745b1dff283d7936337b06 (patch) | |
| tree | 75892386f2a0faf8a75817c627deb626f938d6a9 /src-migrate/modules/product-detail/components | |
| parent | 5c40f27bb865141a0c4086f03efa5b157b660f6d (diff) | |
<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 }) |
