From bb099cb141a0155ef9f60720bfad238c85275bb6 Mon Sep 17 00:00:00 2001 From: Dominik Prokop Date: Wed, 20 May 2020 13:54:42 +0200 Subject: [PATCH] PanelEditor Fix missing labels and description if there is only single option in category (#24905) --- .../components/PanelEditor/FieldConfigEditor.tsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/public/app/features/dashboard/components/PanelEditor/FieldConfigEditor.tsx b/public/app/features/dashboard/components/PanelEditor/FieldConfigEditor.tsx index c7db5ab7cb4..43b19ecb1ec 100644 --- a/public/app/features/dashboard/components/PanelEditor/FieldConfigEditor.tsx +++ b/public/app/features/dashboard/components/PanelEditor/FieldConfigEditor.tsx @@ -171,14 +171,11 @@ export const DefaultFieldConfigEditor: React.FC = ({ data, onChange, conf : undefined : (defaults as any)[item.path]; - const label = - categoryItemCount > 1 ? ( - - ) : ( - undefined - ); + const label = ( + + ); return (