fix array access issues with map iterators

This commit is contained in:
Anthony Dresser
2020-07-16 11:48:51 -07:00
parent ac1237d51c
commit 9744d7796c
3 changed files with 3 additions and 3 deletions

View File

@@ -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();

View File

@@ -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()];