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: Broken region flags #1616

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Fix: Broken region flags #1616

merged 1 commit into from
Jan 22, 2025

Conversation

ItzNotABug
Copy link
Member

What does this PR do?

This PR fixes an issue with broken flags request in some cases.

The issue is that the sdk.forProject will use whatever the last project was opened to load the Avatars API. If the project was invalid or deleted and then you'd navigate to creating a new project, it would throw an exception that the Project ID is not valid or the Project doesn't exist, hence failing the image loads.

As a solution, we use sdk.forConsole as it'll always load the flags.

Test Plan

Manual.

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

Yes.

@ItzNotABug ItzNotABug self-assigned this Jan 19, 2025
@TorstenDittmann TorstenDittmann merged commit a3a3cf3 into main Jan 22, 2025
2 checks passed
@TorstenDittmann TorstenDittmann deleted the fix-region-flags branch January 22, 2025 22:57
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.

2 participants