Skip to content

Commit

Permalink
refactor(Price Validator Assistant): only load 10 price tags. ref #1137
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Dec 19, 2024
1 parent 4209fd7 commit 1a05446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export default {
.then((response) => response.json())
},
getPriceTags(params = {}) {
const defaultParams = {page: 1, size: OP_DEFAULT_PAGE_SIZE} // order_by default ?
const defaultParams = {page: 1, size: 10} // order_by default ?
const url = `${import.meta.env.VITE_OPEN_PRICES_API_URL}/price-tags?${buildURLParams({...defaultParams, ...params})}`
return fetch(url, {
method: 'GET',
Expand Down

0 comments on commit 1a05446

Please sign in to comment.