diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/ViewTokenSheet.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/ViewTokenSheet.tsx index 7ac97feadf3..5a0b45bbdc1 100644 --- a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/ViewTokenSheet.tsx +++ b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/ViewTokenSheet.tsx @@ -22,6 +22,7 @@ import { type CapabilityLevelFilter, } from './TokenCapabilities/TokenCapabilities.utils' import { TokenDocsButtons } from './TokenDocsButtons' +import { AlertError } from '@/components/ui/AlertError' import { useOrganizationsQuery } from '@/data/organizations/organizations-query' import { useProjectsInfiniteQuery } from '@/data/projects/projects-infinite-query' import { @@ -144,8 +145,8 @@ export function ViewTokenSheet({ visible, tokenId, onClose }: ViewTokenSheetProp 'flex flex-col md:flex-row justify-between gap-4 items-start md:items-center border-b' )} > -
- View access for {token?.name} +
+ View access for {token?.name ?? 'Unknown'}
- Error loading token information. Please try again. -
-