Skip to content

Conversation

atyrode
Copy link
Contributor

@atyrode atyrode commented May 4, 2025

This restores the functionnality of the "Reset to tutorial canvas" button in the settings.

atyrode added 2 commits May 2, 2025 22:26
- Changed the API call in SettingsDialog to use the new endpoint '/api/templates/default' for fetching default canvas data.
- Removed the previous fetch implementation, streamlining the code by utilizing the api.getDefaultCanvas() method for better maintainability.
… canvas data

- Modified the getDefaultCanvas function to return result.data instead of the entire result object, ensuring correct data retrieval.
- Added a console log in SettingsDialog to output the fetched default canvas data for debugging purposes.
@atyrode atyrode merged commit 64d81c5 into main May 4, 2025
1 check passed
@atyrode atyrode deleted the reset-tutorial-fix branch May 4, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant