From 4f01c1aa885b9ca8cf0f098db692cfe0f7bcb182 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Mon, 24 Mar 2025 09:20:40 +0000 Subject: [PATCH] LDAP test: Fix page crash (#102587) * fix translation code on ldap page causing crash * move tooltip outside of trans --- .../app/features/admin/ldap/LdapUserGroups.tsx | 16 +++++++--------- public/locales/en-US/grafana.json | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/public/app/features/admin/ldap/LdapUserGroups.tsx b/public/app/features/admin/ldap/LdapUserGroups.tsx index 890ec4aee56..565048f1059 100644 --- a/public/app/features/admin/ldap/LdapUserGroups.tsx +++ b/public/app/features/admin/ldap/LdapUserGroups.tsx @@ -1,6 +1,6 @@ import { useMemo } from 'react'; -import { Tooltip, Icon, InteractiveTable, type CellProps, Column } from '@grafana/ui'; +import { Tooltip, Icon, InteractiveTable, type CellProps, Column, Stack } from '@grafana/ui'; import { Trans } from 'app/core/internationalization'; import { LdapRole } from 'app/types'; @@ -28,14 +28,12 @@ export const LdapUserGroups = ({ groups }: Props) => { header: 'Role', cell: (props: CellProps) => props.value || ( - <> - - No match{' '} - - - - - + + No match + + + + ), }, ], diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index 48e03c5a9d6..1d1e1740791 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -136,7 +136,7 @@ "title": "LDAP Synchronization" }, "ldap-user-groups": { - "no-org-found": "No match <2><0>" + "no-org-found": "No match" }, "ldap-user-info": { "no-team": "No teams found via LDAP"