Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
#200 using item's caption, not the kpi's caption in target indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Chmielowiec committed Mar 10, 2017
1 parent 9bd6d10 commit e9b8b02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/charts/RawChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class RawChart extends Component {

renderChart() {
const {
id, chartType, caption, fields, groupBy, kpiCaption, reRender, height
id, chartType, caption, fields, groupBy, reRender, height
} = this.props;
const {chartData} = this.state;

Expand Down Expand Up @@ -107,7 +107,7 @@ class RawChart extends Component {
<div className="indicator-value">{
chartData[0][fields[0].fieldName] +
(fields[0].unit ? ' ' + fields[0].unit : '')}</div>
<div className="indicator-kpi-caption">{kpiCaption}</div>
<div className="indicator-kpi-caption">{caption}</div>
</div>
);
default:
Expand Down
1 change: 0 additions & 1 deletion src/components/widget/DraggableWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export class DraggableWrapper extends Component {
key={id}
id={indicator.id}
caption={indicator.caption}
kpiCaption={indicator.kpi.caption}
fields={indicator.kpi.fields}
pollInterval={indicator.kpi.pollInterval}
chartType={'Indicator'}
Expand Down

0 comments on commit e9b8b02

Please sign in to comment.