Linted all, refactored VisualizeModal out

This commit is contained in:
Maxime Beauchemin
2016-08-06 23:08:24 -07:00
parent 07a6a0a630
commit dbef3543a9
15 changed files with 300 additions and 209 deletions

View File

@@ -12,10 +12,9 @@ import 'react-select/dist/react-select.css';
class TableWorkspaceElement extends React.Component {
selectStar() {
let cols = '';
const that = this;
this.props.table.columns.forEach(function (col, i) {
this.props.table.columns.forEach((col, i) => {
cols += col.name;
if (i < that.props.table.columns.length - 1) {
if (i < this.props.table.columns.length - 1) {
cols += ', ';
}
});