mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 04:02:15 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed2b7476ae |
@@ -12,6 +12,10 @@ import { getCurrentOrganizationId } from '@/utils/useUser';
|
|||||||
import { api } from '@/packages/api/src';
|
import { api } from '@/packages/api/src';
|
||||||
|
|
||||||
export function switchOrganization(organizationId: string) {
|
export function switchOrganization(organizationId: string) {
|
||||||
|
// Clear Inertia's prefetch cache to prevent stale pages from the old
|
||||||
|
// organization being served when navigating after the switch.
|
||||||
|
router.flushAll();
|
||||||
|
|
||||||
router.put(
|
router.put(
|
||||||
route('current-team.update'),
|
route('current-team.update'),
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user