Fix: Update workspace switcher in settings (#4563)
This commit is contained in:
@@ -161,7 +161,10 @@ export default defineNuxtRouteMiddleware(async (to) => {
|
||||
}
|
||||
|
||||
// 4.3 If going to workspace, set it active
|
||||
if (to.path.startsWith('/workspaces/')) {
|
||||
if (
|
||||
to.path.startsWith('/workspaces/') ||
|
||||
to.path.startsWith('/settings/workspaces/')
|
||||
) {
|
||||
const slug = to.params.slug as string
|
||||
if (slug && belongsToWorkspace(slug)) {
|
||||
mutateActiveWorkspaceSlug(slug)
|
||||
|
||||
Reference in New Issue
Block a user