PanelEditor Fix missing labels and description if there is only single option in category (#24905)

pull/24789/head
Dominik Prokop 5 years ago committed by GitHub
parent 0f174de760
commit bb099cb141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      public/app/features/dashboard/components/PanelEditor/FieldConfigEditor.tsx

@ -171,13 +171,10 @@ export const DefaultFieldConfigEditor: React.FC<Props> = ({ data, onChange, conf
: undefined
: (defaults as any)[item.path];
const label =
categoryItemCount > 1 ? (
const label = (
<Label description={item.description} category={item.category?.slice(1)}>
{item.name}
</Label>
) : (
undefined
);
return (

Loading…
Cancel
Save