Temperary fix of a slice bug (#1648)

This commit is contained in:
vera-liu
2016-11-22 14:54:49 -08:00
committed by GitHub
parent face5245a9
commit bdae570a69
2 changed files with 5 additions and 3 deletions

View File

@@ -109,16 +109,17 @@ class ChartContainer extends React.Component {
},
clearError: () => {
this.props.actions.removeChartAlert();
// no need to do anything here since Alert is closable
// query button will also remove Alert
},
error(msg) {
this.props.actions.chartUpdateFailed(msg);
props.actions.chartUpdateFailed(msg);
},
d3format: (col, number) => {
// mock d3format function in Slice object in superset.js
const format = this.props.column_formats[col];
const format = props.column_formats[col];
return d3format(format, number);
},
};