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 6, 2024
1 parent c901cfe commit 09fb922
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 09fb922

Please sign in to comment.