Skip to content

Commit

Permalink
fix: nfts ordering (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
janmichek authored Sep 14, 2023
1 parent 3b39476 commit aea43fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/NftsPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function loadNextNfts() {
}
if (process.client) {
await fetchNfts({ queryParameters: `/v2/aex141?limit=${limit.value}` })
await fetchNfts({ queryParameters: `/v2/aex141?limit=${limit.value}&direction=forward&by=name` })
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/stores/nfts.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const useNftsStore = defineStore('nfts', () => {

async function fetchNftsList({ queryParameters, limit } = {}) {
nfts.value = null
const defaultParameters = `/v2/aex141?direction=forward&limit=${limit || 10}`
const defaultParameters = `/v2/aex141?limit=${limit || 10}&direction=forward&by=name`
const { data } = await axios.get(
`${MIDDLEWARE_URL}${queryParameters || defaultParameters}`,
)
Expand Down

0 comments on commit aea43fa

Please sign in to comment.