Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SettingsContext error for Setup Component #4485

Closed

Conversation

offstash
Copy link

When running Stash for the first time, after specifying the path in the Setup Component, the following error occurs:

Error: useSettings must be used within a SettingsContext
    at Object.apply (http://localhost:9999/assets/index-a9ae164e.js:49:1224987)
    at an (http://localhost:9999/assets/SettingSection-4086f50f.js:1:4927)
    at div
    at div
    at http://localhost:9999/assets/index-a9ae164e.js:44:25295
    at div
    at http://localhost:9999/assets/index-a9ae164e.js:44:104135
    at E (http://localhost:9999/assets/StashConfiguration-d485fcb1.js:1:707)
    at div
    at _ (http://localhost:9999/assets/StashConfiguration-d485fcb1.js:1:1806)

It seems like a problem that occurred in #4390
To fix this, I've added SettingsContext around StashConfiguration, but I'm not sure if it's in the right place.
If there's a better location, please let me know.

@DogmaDragon DogmaDragon added the bug Something isn't working label Jan 22, 2024
@WithoutPants
Copy link
Collaborator

Closing in favour of #4527

@offstash offstash deleted the fix-setup-use-settings-error branch March 27, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants