diff --git a/ui/puzzle/src/puzzle.dashboard.ts b/ui/puzzle/src/puzzle.dashboard.ts index da5d7e7e41a2..69cec32ae997 100644 --- a/ui/puzzle/src/puzzle.dashboard.ts +++ b/ui/puzzle/src/puzzle.dashboard.ts @@ -24,6 +24,9 @@ interface RadarData { export function initModule(data: RadarData) { const canvas = document.querySelector('.puzzle-dashboard__radar') as HTMLCanvasElement; const d = data.radar; + + if (!d?.datasets.length) return; + d.datasets[0] = { ...d.datasets[0], ...{