Skip to content

Commit

Permalink
fix(nc-gui): cmdk scope remove
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkPhoenix2704 committed May 9, 2024
1 parent 8e8e9e7 commit e4c0c4f
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions packages/nc-gui/composables/useCommandPalette/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,19 +169,11 @@ export const useCommandPalette = createSharedComposable(() => {
}
}
} else {
if (route.value.path.startsWith('/account')) {
if (activeScope.value.scope === 'account_settings') return
if (activeScope.value.scope === 'root') return

activeScope.value = { scope: 'account_settings', data: {} }
activeScope.value = { scope: 'root', data: {} }

loadScope()
} else {
if (activeScope.value.scope === 'root') return

activeScope.value = { scope: 'root', data: {} }

loadScope()
}
loadScope()
}
},
{ immediate: true, deep: true },
Expand Down

1 comment on commit e4c0c4f

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR changes have been deployed. Please run the following command to verify:

docker run -d -p 8888:8080 nocodb/nocodb-timely:0.205.0-pr-8411-20240509-1834

Please sign in to comment.