Skip to content

Commit

Permalink
Pick last chart as default
Browse files Browse the repository at this point in the history
  • Loading branch information
kozaktomas committed Nov 11, 2024
1 parent 4eadb78 commit fa1baba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/FieldChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function FieldChart(props) {

let i = activeInterval
if (i === DEFAULT_INTERVAL) {
i = props.chart[0].interval
i = props.chart[props.chart.length - 1].interval
setActiveInterval(i)
return
}
Expand Down

0 comments on commit fa1baba

Please sign in to comment.