Skip to content

Commit

Permalink
allow for undefined data (no data in the response)
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Jun 18, 2024
1 parent 406c110 commit e11b0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/features/modelling/line-plot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function getDatasets(data) {
if (data?.map) {
return data.map(getSeriesData);
}
if (data.x && data.y) {
if (data?.x && data?.y) {
return [getXYData(data)];
}
return [];
Expand Down

0 comments on commit e11b0e8

Please sign in to comment.