Bläddra i källkod

graph legend: fix quotes displaying

React already escapes all strings, so it's no need to pass escaped alias
Alexander Zobnin 7 år sedan
förälder
incheckning
011d7ffa70
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      public/app/plugins/panel/graph/Legend/LegendSeriesItem.tsx

+ 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}