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

@@ -284,7 +284,7 @@ export class TabbedPanel extends Disposable {
}
}
if (!this._shownTabId && this._tabMap.size > 0) {
this.showTab(this._tabMap.values()[0].tab.identifier);
this.showTab(this._tabMap.values().next().value.tab.identifier);
}
}