Skip to content

Commit

Permalink
fix query results not re-rendering if field information did not change (
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Nov 10, 2020
1 parent e798122 commit 2797748
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/renderer/components/query-result-table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export default class QueryResultTable extends Component {
}

renderTableBody(onScroll) {
const { rowCount, fields } = this.props;
const { rowCount, fields, rows } = this.props;
const { tableWidth, tableHeight } = this.state;

const headerHeight = 62; // value of 2 headers together
Expand All @@ -311,9 +311,10 @@ export default class QueryResultTable extends Component {
rowCount={rowCount}
columnCount={fields.length}
columnWidth={this.getColumnWidth}
rows={rows}
rowsCount={rowCount}
noContentRenderer={this.renderNoRows} />

noContentRenderer={this.renderNoRows}
/>
);
}

Expand Down

0 comments on commit 2797748

Please sign in to comment.