zgl 1 неделя назад
Родитель
Сommit
f392d15447
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/utils/hooks/getProductReviews.ts
  2. 1 1
      src/utils/hooks/getProductSwatchAndReview.ts

+ 1 - 1
src/utils/hooks/getProductReviews.ts

@@ -8,7 +8,7 @@ export async function getProductReviews(productId: string) {
     const variables = { product_id: Number(productId), first: 10 };
     const variables = { product_id: Number(productId), first: 10 };
     
     
     const {data:response} = await cachedProductRequest<any>(
     const {data:response} = await cachedProductRequest<any>(
-      productId,
+      // productId,
       GET_PRODUCT_REVIEWS,
       GET_PRODUCT_REVIEWS,
       variables
       variables
     );
     );

+ 1 - 1
src/utils/hooks/getProductSwatchAndReview.ts

@@ -6,7 +6,7 @@ import { cachedProductRequest } from "@/utils/hooks/useCache";
 export async function getProductWithSwatchAndReview(urlKey: string) {
 export async function getProductWithSwatchAndReview(urlKey: string) {
   try {
   try {
     const {data:dataById} = await cachedProductRequest<SingleProductResponse>(
     const {data:dataById} = await cachedProductRequest<SingleProductResponse>(
-      urlKey,
+      // urlKey,
       GET_PRODUCT_SWATCH_REVIEW,
       GET_PRODUCT_SWATCH_REVIEW,
       { urlKey: urlKey }
       { urlKey: urlKey }
     );
     );