Skip to content

Commit

Permalink
fix: add keyblock parameter (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
janmichek authored Jun 5, 2024
1 parent 84c1130 commit baca7b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stores/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ export const useChartsStore = defineStore('charts', () => {
? `?min_start_date=${customInterval.minStart}&max_start_date=${customInterval.maxStart}&limit=1000`
: `?interval_by=${interval}&limit=${parseInt(limit) + 1}`

const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/statistics/blocks${intervalSlug}`)

const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/statistics/blocks${intervalSlug}&type=key`)
// remove last interval from the response not to show current interval that is being built
keyblocksStatistics.value = customInterval ? data.data.reverse() : data.data.slice(1).reverse()
}
Expand Down

0 comments on commit baca7b1

Please sign in to comment.