From 4869be38854ea5765db1a2a2262a3f250868667c Mon Sep 17 00:00:00 2001 From: Mark Sujew Date: Wed, 28 Jun 2023 19:50:55 +0000 Subject: [PATCH] Fix tab-bar startup error --- packages/core/src/browser/shell/tab-bars.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/browser/shell/tab-bars.ts b/packages/core/src/browser/shell/tab-bars.ts index 8a983897940ad..8e01b66d3dc83 100644 --- a/packages/core/src/browser/shell/tab-bars.ts +++ b/packages/core/src/browser/shell/tab-bars.ts @@ -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;