Browse Source

Merge pull request #6900 from nocodb/nc-fix/open-last-opened-workspace-id-if-none-given-on-first-load

Nc fix/open last opened workspace id if none given on first load
pull/6904/head
Raju Udava 11 months ago committed by GitHub
parent
commit
8947b29f34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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,
lastOpenedWorkspaceId: 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
lastOpenedWorkspaceId: string | null
}
export type State = ToRefs<Omit<StoredState, 'token'>> & {

Loading…
Cancel
Save