Skip to content

Commit

Permalink
Bind data preview tabs to sql editor (#1573)
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu authored and mistercrunch committed Nov 9, 2016
1 parent 6a15679 commit 9789e3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class TabbedSqlEditors extends React.PureComponent {
const dataPreviewQueries = [];
this.props.tables.forEach((table) => {
const queryId = table.dataPreviewQueryId;
if (queryId && this.props.queries[queryId]) {
if (queryId && this.props.queries[queryId] && table.queryEditorId === qe.id) {
dataPreviewQueries.push(this.props.queries[queryId]);
}
});
Expand Down

0 comments on commit 9789e3f

Please sign in to comment.