Explorar el Código

graph legend: fix quotes displaying

React already escapes all strings, so it's no need to pass escaped alias
Alexander Zobnin hace 7 años
padre
commit
011d7ffa70
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 seriesLabel = (
       <LegendSeriesLabel
-        label={series.aliasEscaped}
+        label={series.alias}
         color={series.color}
         yaxis={this.state.yaxis}
         onLabelClick={this.onLabelClick}