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 Jul 17, 2024
1 parent 9f4d85e commit 939d235
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 939d235

Please sign in to comment.