Skip to content

Commit 7eb51ff

Browse files
committed
fix: org switch timeout
1 parent 1a03a1f commit 7eb51ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/dashboard/app/(main)/organizations/components/organizations-list.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export function OrganizationsList({
9292
toast.error(error.message || 'Failed to switch workspace');
9393
} else {
9494
toast.success('Workspace updated');
95+
await new Promise((resolve) => setTimeout(resolve, 300));
9596
router.push('/organizations/settings');
9697
}
9798
} catch (_error) {

0 commit comments

Comments
 (0)