fix: fix token creation after mcp mode change to make it non workspace specific

This commit is contained in:
Ruben Fiszel
2025-04-25 19:20:21 +02:00
parent dc5c8d8c5f
commit 2b5dfcfb25
@@ -75,7 +75,7 @@
label: newTokenLabel,
expiration: date?.toISOString(),
scopes: tokenScopes,
workspace_id: newTokenWorkspace || $workspaceStore
workspace_id: mcpMode ? (newTokenWorkspace || $workspaceStore) : undefined
} as NewToken
})