Skip to content

Commit

Permalink
Merge pull request #16116 from ChaseNelson/fix-puzzle-dashboard-err
Browse files Browse the repository at this point in the history
Fixes no puzzle history console error
  • Loading branch information
ornicar committed Sep 24, 2024
2 parents dd18292 + b79ca5a commit 9d32c1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/puzzle/src/puzzle.dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
...{
Expand Down

0 comments on commit 9d32c1b

Please sign in to comment.