From f2b075ea39413685e7f3c96f78de8b06d7757e63 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Wed, 29 Jan 2025 03:29:31 +0330 Subject: [PATCH] Updated --- frontend/composables/api/products/useGetProducts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/composables/api/products/useGetProducts.ts b/frontend/composables/api/products/useGetProducts.ts index adfa9a1..ead844f 100644 --- a/frontend/composables/api/products/useGetProducts.ts +++ b/frontend/composables/api/products/useGetProducts.ts @@ -50,7 +50,7 @@ const useGetProducts = (params?: GetProductsFilters) => { category: params?.category, price_gte: params?.price_gte, price_lte: params?.price_lte, - offest: params?.page! * 9 - 9, + offset: params?.page ? Number(params.page) * 9 - 9 : 0, limit: 9, }, }