aboutsummaryrefslogtreecommitdiff
path: root/src/client/goldenLayout.js
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-05-20 17:10:32 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-05-20 17:10:32 -0400
commit530918797617a4f010c5d34d836f942ac7356274 (patch)
treea9fb35810334ff8263259890e4a61535e1f3f3b5 /src/client/goldenLayout.js
parent7cde8383e45ccf8293ec9cba2beddc64bceda2aa (diff)
parent059faf25a0f8ba80e1d2853dcefa1a70df4cbb6a (diff)
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/goldenLayout.js')
-rw-r--r--src/client/goldenLayout.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/goldenLayout.js b/src/client/goldenLayout.js
index ab2bcefed..54c9c6068 100644
--- a/src/client/goldenLayout.js
+++ b/src/client/goldenLayout.js
@@ -4466,7 +4466,7 @@
}
if (this.contentItems.length > 0) {
- initialItem = this.contentItems[this.config.activeItemIndex || 0];
+ initialItem = this.contentItems[Math.min(this.contentItems.length - 1, this.config.activeItemIndex || 0)];
if (!initialItem) {
throw new Error('Configured activeItemIndex out of bounds');