mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 01:25:38 -05:00
fix array access issues with map iterators
This commit is contained in:
@@ -292,7 +292,7 @@ export class AccountDialog extends Modal {
|
||||
this._splitViewContainer.hidden = false;
|
||||
this._noaccountViewContainer.hidden = true;
|
||||
if (Iterable.consume(this._providerViewsMap.values()).length > 0) {
|
||||
const firstView = this._providerViewsMap.values()[0];
|
||||
const firstView = this._providerViewsMap.values().next().value;
|
||||
if (firstView instanceof AccountPanel) {
|
||||
firstView.setSelection([0]);
|
||||
firstView.focus();
|
||||
|
||||
@@ -102,7 +102,7 @@ export async function getResultsString(provider: IGridDataProvider, selection: S
|
||||
|
||||
let copyString = '';
|
||||
if (includeHeaders) {
|
||||
copyString = [...headers.values()].join('\t').concat(eol);
|
||||
copyString = Array.from(headers.values()).join('\t').concat(eol);
|
||||
}
|
||||
|
||||
const rowKeys = [...headers.keys()];
|
||||
|
||||
Reference in New Issue
Block a user