From 6224b59648c4b6d1c1d34744ba20a45e4e0711f2 Mon Sep 17 00:00:00 2001 From: Jim O'Donnell Date: Thu, 6 Jun 2024 15:58:11 +0100 Subject: [PATCH] Add a default return when there's no data --- app/features/modelling/line-plot/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/features/modelling/line-plot/index.js b/app/features/modelling/line-plot/index.js index 6f91990a86..695ac3546c 100644 --- a/app/features/modelling/line-plot/index.js +++ b/app/features/modelling/line-plot/index.js @@ -30,6 +30,7 @@ function getDatasets(data) { if (data.x && data.y) { return [getXYData(data)]; } + return []; } // Help at http://www.chartjs.org/docs/latest