mirror of
https://github.com/apache/superset.git
synced 2026-04-12 20:57:55 +00:00
This reverts commit 75e69f02e8.
This commit is contained in:
committed by
GitHub
parent
0c36827368
commit
46d60880eb
@@ -36,6 +36,7 @@ export default class ResultSet extends React.PureComponent {
|
||||
searchText: '',
|
||||
showModal: false,
|
||||
data: null,
|
||||
height: props.search ? props.height - RESULT_SET_CONTROLS_HEIGHT : props.height,
|
||||
};
|
||||
}
|
||||
componentDidMount() {
|
||||
@@ -142,8 +143,7 @@ export default class ResultSet extends React.PureComponent {
|
||||
}
|
||||
}
|
||||
render() {
|
||||
const { query, search, height } = this.props;
|
||||
const tableHeight = search ? height - RESULT_SET_CONTROLS_HEIGHT : height;
|
||||
const query = this.props.query;
|
||||
let sql;
|
||||
|
||||
if (this.props.showSql) {
|
||||
@@ -190,7 +190,7 @@ export default class ResultSet extends React.PureComponent {
|
||||
<FilterableTable
|
||||
data={data}
|
||||
orderedColumnKeys={results.columns.map(col => col.name)}
|
||||
height={tableHeight}
|
||||
height={this.state.height}
|
||||
filterText={this.state.searchText}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user