add sanity check when adding tables to the results (#6714)

This commit is contained in:
Anthony Dresser
2019-08-13 13:35:12 -07:00
committed by Karl Burtram
parent 6fd4b5eaf2
commit 8e8b936da4

View File

@@ -203,6 +203,10 @@ export class GridPanel {
let tables: GridTable<any>[] = [];
for (let set of resultSet) {
// ensure we aren't adding a resultSet that is already visible
if (this.tables.find(t => t.resultSet.batchId === set.batchId && t.resultSet.id === set.id)) {
continue;
}
let tableState: GridTableState;
if (this.state) {
tableState = this.state.tableStates.find(e => e.batchId === set.batchId && e.resultId === set.id);