summaryrefslogtreecommitdiff
path: root/src-migrate/modules
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2024-02-20 09:36:36 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2024-02-20 09:36:36 +0700
commit49099ca1da44cc7097e50d88f8dc43913755aee4 (patch)
tree68dc67fc1ebb3a30454f05504e322487ab30f4cf /src-migrate/modules
parent8c8eea40f47bb0b669060a56ff0fa80648e3e3c4 (diff)
Update promotion program line unused keep prev data
Diffstat (limited to 'src-migrate/modules')
-rw-r--r--src-migrate/modules/product-promo/components/Section.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src-migrate/modules/product-promo/components/Section.tsx b/src-migrate/modules/product-promo/components/Section.tsx
index ba305724..5000e737 100644
--- a/src-migrate/modules/product-promo/components/Section.tsx
+++ b/src-migrate/modules/product-promo/components/Section.tsx
@@ -17,8 +17,7 @@ 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[] },
- keepPreviousData: true
+ queryFn: async () => await fetch(`/api/product-variant/${productId}/promotion/highlight`).then((res) => res.json()) as { data: IPromotion[] }
})
const promotions = promotionsQuery.data