hackclub / sinerider

💖 A game about love and graphing, built by teenagers.
https://sinerider.com
GNU Affero General Public License v3.0
548 stars 46 forks source link

Editor "Copy as Puzzle" links don't work #624

Closed polypixeldev closed 8 months ago

polypixeldev commented 8 months ago

Description

When creating a level in the editor, clicking the share button, copying the link as a puzzle, and then pasting the link into a new window, the puzzle level fails to load. The error thrown in the console is:

Uncaught TypeError: Cannot read properties of undefined (reading 'goals')
    at getLevelDatum (World.js:400:40)
    at World (World.js:84:27)
    at main.js:232:15

This causes the loading screen to show, but the progress bar stays empty.

Screenshots

No response

Additional information

No response

polytroper commented 8 months ago

Thank you will take a look

polytroper commented 8 months ago

Fixed