diff --git a/app/features/modelling/line-plot/index.js b/app/features/modelling/line-plot/index.js index a6d5e5552f..9735437e68 100644 --- a/app/features/modelling/line-plot/index.js +++ b/app/features/modelling/line-plot/index.js @@ -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 [];