Skip to content

App crashes when opening board with tile missing ID (TypeError in LanguageProvider) #2038

@tomivm

Description

@tomivm

User reports: When trying to open the board "665f3ff1d4f7f0001ce1c994", the app crashes and shows the following error in the console:

LanguageProvider.container.js:61 TypeError: Cannot destructure property 'label' of 'e' as it is null.

Stacktrace:

  • at c (helpers.js:60:36)
  • at Board.component.js:207:16
  • at Array.map ()
  • at dF.renderTiles (Board.component.js:204:18)
  • at dF.render (Board.component.js:336:24)

Updates:

  • The error occurs if the board is not fixed and one of its tiles has no ID (strange, they should always have one).
  • It does not seem directly related to the helper function, which accesses label and labelKey, not id.

Actions to review:

  • Check if the ID is a mandatory parameter for all tiles.
  • Investigate why a tile could have been created without an ID.
  • Analyze why the function that returns the translation breaks the whole app when destructuring.

Notes:

  • The error only occurs in non-fixed boards when a tile has no ID.
  • The flow for creating and managing tiles should be reviewed to prevent this issue in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions