Fixing the build [that I broke]

This commit is contained in:
Maxime Beauchemin
2016-08-30 23:27:56 -07:00
parent 508feb2bad
commit 3f889492f9
2 changed files with 6 additions and 25 deletions

View File

@@ -7,6 +7,9 @@ import * as Actions from '../actions';
import shortid from 'shortid';
class TableElement extends React.Component {
setSelectStar() {
this.props.actions.queryEditorSetSql(this.props.queryEditor, this.selectStar());
}
selectStar() {
let cols = '';
this.props.table.columns.forEach((col, i) => {
@@ -17,9 +20,6 @@ class TableElement extends React.Component {
});
return `SELECT ${cols}\nFROM ${this.props.table.name}`;
}
setSelectStar () {
this.props.actions.queryEditorSetSql(this.props.queryEditor, this.selectStar());
}
popSelectStar() {
const qe = {
id: shortid.generate(),