Skip to content

Conversation

@ViaSocket-Git
Copy link
Collaborator

…t handleSwitchOrg

  • Add try-catch-finally block inside callback to handle errors during org switching
  • Close CREATE_ORG_MODAL after successful workspace creation
  • Move setIsLoading(false) inside callback's finally block for proper loading state management
  • Add error logging and toast notification for org switching failures
  • Keep outer catch block for initial

…t handleSwitchOrg

- Add try-catch-finally block inside callback to handle errors during org switching
- Close CREATE_ORG_MODAL after successful workspace creation
- Move setIsLoading(false) inside callback's finally block for proper loading state management
- Add error logging and toast notification for org switching failures
- Keep outer catch block for initial
@cloudflare-workers-and-pages
Copy link

Deploying ai-middleware with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1b594ae
Status: ✅  Deploy successful!
Preview URL: https://5f555d86.ai-middleware.pages.dev
Branch Preview URL: https://switch-org-issue-prod.ai-middleware.pages.dev

View logs

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.

3 participants