diff --git a/public/app/features/dashboard/components/DashboardRow/DashboardRow.tsx b/public/app/features/dashboard/components/DashboardRow/DashboardRow.tsx index 233b1f1ce92..d6495d82845 100644 --- a/public/app/features/dashboard/components/DashboardRow/DashboardRow.tsx +++ b/public/app/features/dashboard/components/DashboardRow/DashboardRow.tsx @@ -69,7 +69,7 @@ export class DashboardRow extends React.Component { 'dashboard-row--collapsed': this.state.collapsed, }); - const title = templateSrv.replaceWithText(this.props.panel.title, this.props.panel.scopedVars); + const title = templateSrv.replace(this.props.panel.title, this.props.panel.scopedVars, 'text'); const count = this.props.panel.panels ? this.props.panel.panels.length : 0; const panels = count === 1 ? 'panel' : 'panels'; const canEdit = this.props.dashboard.meta.canEdit === true; diff --git a/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeader.tsx b/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeader.tsx index 43267e8ee16..e301266fc7f 100644 --- a/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeader.tsx +++ b/public/app/features/dashboard/dashgrid/PanelHeader/PanelHeader.tsx @@ -131,7 +131,7 @@ export class PanelHeader extends Component { render() { const { panel, scopedVars, error, isViewing, isEditing, data, alertState } = this.props; const { menuItems } = this.state; - const title = templateSrv.replaceWithText(panel.title, scopedVars); + const title = templateSrv.replace(panel.title, scopedVars, 'text'); const panelHeaderClass = classNames({ 'panel-header': true,