Skip to content

Commit

Permalink
Fix #850: Dashboard charts
Browse files Browse the repository at this point in the history
  • Loading branch information
Derranion committed Apr 16, 2022
1 parent 9327320 commit 475ae2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/charts/LineChartData.ts
Expand Up @@ -41,7 +41,7 @@ export const getLineChartData = (themes: ColorThemes, firstMonth: number) => {
if (firstMonth && firstMonthIndex !== firstMonth) {
generatedData.labels.shift()
generatedData.datasets.forEach((dataset) => {
dataset.data.shift()
dataset.data = dataset.data.slice(1)
})
firstMonthIndex = firstMonth
}
Expand Down

0 comments on commit 475ae2d

Please sign in to comment.