Skip to content

Commit

Permalink
Add a default return when there's no data
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Jun 6, 2024
1 parent c6031ce commit 6224b59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/features/modelling/line-plot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function getDatasets(data) {
if (data.x && data.y) {
return [getXYData(data)];
}
return [];
}

// Help at http://www.chartjs.org/docs/latest
Expand Down

0 comments on commit 6224b59

Please sign in to comment.