Skip to content

Console error in Puzzle Dashboard when not having played any puzzles in the selected period #16101

@Siderite

Description

@Siderite

Exact URL of where the bug happened

https://lichess.org/training/dashboard/30/dashboard

Steps to reproduce the bug

  1. Go to the URL
  2. Select a time interval in which you have not played any puzzles

What did you expect to happen?

no error

What happened instead?

error :)

Operating system

Windows 11

Browser and version (or alternate access method)

Brave

Additional information

image

TypeError: Cannot read properties of undefined (reading 'datasets')
    at Module.u (puzzle.dashboard.2RGO6M6G.js:1:256)
    at Object.w (common.AZYTTFBM.js:1:1790)

coming from https://github.com/lichess-org/lila/blob/master/ui/puzzle/src/puzzle.dashboard.ts#L27

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions