Explorar o código

graph legend: fix quotes displaying

React already escapes all strings, so it's no need to pass escaped alias
Alexander Zobnin %!s(int64=7) %!d(string=hai) anos
pai
achega
011d7ffa70

+ 1 - 1
public/app/plugins/panel/graph/Legend/LegendSeriesItem.tsx

@@ -93,7 +93,7 @@ export class LegendItem extends React.PureComponent<LegendItemProps, LegendItemS
     const valueItems = values ? this.renderLegendValues() : [];
     const valueItems = values ? this.renderLegendValues() : [];
     const seriesLabel = (
     const seriesLabel = (
       <LegendSeriesLabel
       <LegendSeriesLabel
-        label={series.aliasEscaped}
+        label={series.alias}
         color={series.color}
         color={series.color}
         yaxis={this.state.yaxis}
         yaxis={this.state.yaxis}
         onLabelClick={this.onLabelClick}
         onLabelClick={this.onLabelClick}