Fix bug where table data wasn't being updated (#290)

This commit is contained in:
Risha Mars 2018-02-08 10:33:33 -08:00 committed by GitHub
parent 4fadfa2243
commit 81d4b7b924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 9 deletions

View File

@ -79,14 +79,6 @@ export default class TabbedMetricsTable extends React.Component {
constructor(props) {
super(props);
this.api = this.props.api;
this.state = {
timeseries: {},
rollup: this.preprocessMetrics(),
error: '',
pollingInterval: 10000,
pendingRequests: false
};
}
preprocessMetrics() {
@ -103,10 +95,11 @@ export default class TabbedMetricsTable extends React.Component {
render() {
let resource = resourceInfo[this.props.resource];
let tableData = this.preprocessMetrics();
let columns = _.compact(columnDefinitions(this.props.sortable, resource, this.api.ConduitLink));
return (<Table
dataSource={this.state.rollup}
dataSource={tableData}
columns={columns}
pagination={false}
className="conduit-table"