summaryrefslogtreecommitdiff
path: root/src-migrate
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate')
-rw-r--r--src-migrate/modules/product-promo/components/Section.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src-migrate/modules/product-promo/components/Section.tsx b/src-migrate/modules/product-promo/components/Section.tsx
index 5000e737..ba305724 100644
--- a/src-migrate/modules/product-promo/components/Section.tsx
+++ b/src-migrate/modules/product-promo/components/Section.tsx
@@ -17,7 +17,8 @@ type Props = {
const ProductPromoSection = ({ productId, height = 435 }: Props) => {
const promotionsQuery = useQuery({
queryKey: [`promotions.highlight`, productId],
- queryFn: async () => await fetch(`/api/product-variant/${productId}/promotion/highlight`).then((res) => res.json()) as { data: IPromotion[] }
+ queryFn: async () => await fetch(`/api/product-variant/${productId}/promotion/highlight`).then((res) => res.json()) as { data: IPromotion[] },
+ keepPreviousData: true
})
const promotions = promotionsQuery.data