Skip to content

Commit

Permalink
Fix tab-bar startup error
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew committed Jun 28, 2023
1 parent b1788ea commit 4869be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/browser/shell/tab-bars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ export class SideTabBar extends ScrollableTabBar {
}

// Special handling if only one element is overflowing.
if (overflowStartIndex === n - 1) {
if (overflowStartIndex === n - 1 && renderData[overflowStartIndex]) {
if (!this.tabsOverflowData) {
overflowStartIndex--;
renderData[overflowStartIndex].visible = false;
Expand Down

0 comments on commit 4869be3

Please sign in to comment.