Skip to content

Commit

Permalink
[MS] Removed history clear when switching org
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-7 committed Jan 15, 2025
1 parent 226cb00 commit 5bc8446
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions client/src/router/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { ConnectionHandle, EntryName, WorkspaceHandle } from '@/parsec';
import { getConnectionHandle } from '@/router/params';
import { ClientAreaQuery, Query, RouteBackup, Routes, getCurrentRoute, getRouter } from '@/router/types';
import { recentDocumentManager } from '@/services/recentDocuments';
import { Base64 } from 'megashark-lib';
import { LocationQueryRaw, RouteParamsRaw } from 'vue-router';

Expand Down Expand Up @@ -96,7 +95,6 @@ export async function switchOrganization(handle: ConnectionHandle | null, backup
window.electronAPI.log('error', 'Trying to switch to an organization for which we have no backup information');
return;
}
recentDocumentManager.resetHistory();
const backup = routesBackup[backupIndex];
try {
await navigateTo(Routes.Loading, { skipHandle: true, replace: true, query: { loginInfo: Base64.fromObject(backup) } });
Expand Down

0 comments on commit 5bc8446

Please sign in to comment.