diff --git a/src/services/ProductStoreService.ts b/src/services/ProductStoreService.ts index a05be96..33e465a 100644 --- a/src/services/ProductStoreService.ts +++ b/src/services/ProductStoreService.ts @@ -24,10 +24,11 @@ const fetchProductStoreDetails = async (productStoreId: any): Promise => { }); } -const fetchProductStores = async (): Promise => { +const fetchProductStores = async (payload: any): Promise => { return api({ url: "productStores", - method: "get" + method: "get", + params: payload }); } diff --git a/src/store/modules/productStore/actions.ts b/src/store/modules/productStore/actions.ts index ae9cb0e..8fabab2 100644 --- a/src/store/modules/productStore/actions.ts +++ b/src/store/modules/productStore/actions.ts @@ -13,7 +13,7 @@ const actions: ActionTree = { let productStores = []; try { - const resp = await ProductStoreService.fetchProductStores(); + const resp = await ProductStoreService.fetchProductStores({ pageSize: 20 }); if(!hasError(resp)) { productStores = resp.data;