Skip to content

Commit d23901d

Browse files
committed
2 parents 52adbe7 + 6adc366 commit d23901d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/main/js/components/MetricsSummaryTab/MetricsSummaryTab.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,21 @@ class MetricsSummaryTab extends React.Component {
130130
dataF77: item
131131
});
132132
});
133+
}
133134

135+
constructor(){
136+
super();
137+
this.findMeasures = this.findMeasures.bind(this);
138+
}
139+
140+
componentDidMount() {
141+
142+
this.findMeasures().then((valuesReturnedByAPI) => {
143+
this.setState({
144+
data: valuesReturnedByAPI
145+
});
146+
});
147+
134148
this.setState({
135149
/* dataF77: [
136150
{ name: 'Nesting', total: '-', min: 5, mean: 5.2, max: 6 },
@@ -180,4 +194,4 @@ class MetricsSummaryTab extends React.Component {
180194
};
181195
}
182196

183-
export default MetricsSummaryTab;
197+
export default MetricsSummaryTab;

0 commit comments

Comments
 (0)