Skip to content

Commit

Permalink
Reverted: unwanted changes in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Jan 12, 2024
1 parent 812d781 commit dd15c84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/modules/product/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const actions: ActionTree<ProductState, RootState> = {
}
const productQueryPayload = prepareProductQuery(params)
resp = await ProductService.fetchProducts(productQueryPayload)

// resp.data.response.numFound tells the number of items in the response
if (resp.status === 200 && resp.data.response?.numFound > 0 && !hasError(resp)) {
let products = resp.data.response.docs;
Expand Down

0 comments on commit dd15c84

Please sign in to comment.