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
75fefa315e
  1. 1
      packages/nc-gui/composables/useGlobal/state.ts
  2. 1
      packages/nc-gui/composables/useGlobal/types.ts

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

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

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

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

Loading…
Cancel
Save