mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
[sql-lab] fix react warnings in dev (#1232)
* rename file to match class * fix react warnings * fix proptype typo * add missing keys
This commit is contained in:
@@ -28,7 +28,7 @@ import shortid from 'shortid';
|
||||
import SouthPane from './SouthPane';
|
||||
import Timer from './Timer';
|
||||
|
||||
import SqlEditorLeft from './SqlEditorLeft';
|
||||
import SqlEditorTopToolbar from './SqlEditorTopToolbar';
|
||||
|
||||
class SqlEditor extends React.Component {
|
||||
constructor(props) {
|
||||
@@ -155,6 +155,7 @@ class SqlEditor extends React.Component {
|
||||
style={{ width: '100px' }}
|
||||
onClick={this.runQuery.bind(this, false)}
|
||||
disabled={!(this.props.queryEditor.dbId)}
|
||||
key={shortid.generate()}
|
||||
>
|
||||
<i className="fa fa-table" /> Run Query
|
||||
</Button>
|
||||
@@ -168,6 +169,7 @@ class SqlEditor extends React.Component {
|
||||
style={{ width: '100px' }}
|
||||
onClick={this.runQuery.bind(this, true)}
|
||||
disabled={!(this.props.queryEditor.dbId)}
|
||||
key={shortid.generate()}
|
||||
>
|
||||
<i className="fa fa-table" /> Run Async
|
||||
</Button>
|
||||
@@ -250,7 +252,7 @@ class SqlEditor extends React.Component {
|
||||
<div className="SqlEditor" style={{ minHeight: this.sqlEditorHeight() }}>
|
||||
<Row>
|
||||
<Col md={3}>
|
||||
<SqlEditorLeft queryEditor={this.props.queryEditor} />
|
||||
<SqlEditorTopToolbar queryEditor={this.props.queryEditor} />
|
||||
</Col>
|
||||
<Col md={9}>
|
||||
<AceEditor
|
||||
|
||||
Reference in New Issue
Block a user