mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 01:25:37 -05:00
add sanity check when adding tables to the results (#6714)
This commit is contained in:
committed by
Karl Burtram
parent
6fd4b5eaf2
commit
8e8b936da4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user