diff --git a/packages/grafana-ui/src/options/builder/text.tsx b/packages/grafana-ui/src/options/builder/text.tsx index 79ec1bbb8b8..4bd507aaf10 100644 --- a/packages/grafana-ui/src/options/builder/text.tsx +++ b/packages/grafana-ui/src/options/builder/text.tsx @@ -9,8 +9,13 @@ import { OptionsWithTextFormatting } from '@grafana/schema'; */ export function addTextSizeOptions( builder: PanelOptionsEditorBuilder, - options: { withValue?: boolean; withTitle?: boolean; withPercentChange?: boolean } + options: { withValue?: boolean; withTitle?: boolean; withPercentChange?: boolean } = { withTitle: true } ) { + // if called from old plugins when parameter was withTitle boolean + if (typeof options === 'boolean') { + options = { withTitle: options }; + } + const category = [t('grafana-ui.builder.text.category-text-size', 'Text size')]; if (options.withTitle) { builder.addNumberInput({