Browse Source

fix: Open last opened workspace if no workspace id is present in url on first load

pull/6900/head
Muhammed Mustafa 1 year ago
parent
commit
2b5adf619b
  1. 2
      packages/nc-gui/composables/useGlobal/state.ts
  2. 2
      packages/nc-gui/composables/useGlobal/types.ts

2
packages/nc-gui/composables/useGlobal/state.ts

@ -67,7 +67,7 @@ export function useGlobalState(storageKey = 'nocodb-gui-v2'): State {
latestRelease: null,
hiddenRelease: null,
isMobileMode: null,
lastUsedWorkspaceId: null,
lastOpenedWorkspaceId: null,
}
/** saves a reactive state, any change to these values will write/delete to localStorage */

2
packages/nc-gui/composables/useGlobal/types.ts

@ -44,7 +44,7 @@ export interface StoredState {
latestRelease: string | null
hiddenRelease: string | null
isMobileMode: boolean | null
lastUsedWorkspaceId: string | null
lastOpenedWorkspaceId: string | null
}
export type State = ToRefs<Omit<StoredState, 'token'>> & {

Loading…
Cancel
Save