fix(reviews): remove redundant comment in ProductDetailReviewsPanel component
All checks were successful
Deploy — Staging / Detect changed apps (push) Successful in 15s
Deploy — Staging / Lint, Typecheck & Test (push) Successful in 1m27s
Deploy — Staging / Build & push — storefront (push) Successful in 2m16s
Deploy — Staging / Build & push — admin (push) Has been skipped
Deploy — Staging / Deploy to staging VPS (push) Successful in 19s
All checks were successful
Deploy — Staging / Detect changed apps (push) Successful in 15s
Deploy — Staging / Lint, Typecheck & Test (push) Successful in 1m27s
Deploy — Staging / Build & push — storefront (push) Successful in 2m16s
Deploy — Staging / Build & push — admin (push) Has been skipped
Deploy — Staging / Deploy to staging VPS (push) Successful in 19s
This commit is contained in:
@@ -27,7 +27,7 @@ export function ProductDetailReviewsPanel({ productId, initialRating, initialRev
|
|||||||
productId: productId as Id<"products">,
|
productId: productId as Id<"products">,
|
||||||
sortBy,
|
sortBy,
|
||||||
limit: offset + LIMIT,
|
limit: offset + LIMIT,
|
||||||
offset: 0, // In this pattern, we increase limit to fetch more pages without resetting offset, so previously fetched array grows
|
offset: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (result === undefined) return <ProductDetailReviewsSkeleton />;
|
if (result === undefined) return <ProductDetailReviewsSkeleton />;
|
||||||
|
|||||||
Reference in New Issue
Block a user