Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Commit e4bd101

Browse files
Merge branch 'master' of github.com:jdestefano-mongo/docs-tools into DOCSP-1682v2
2 parents 7c13a83 + 2a734b3 commit e4bd101

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

themes/mongodb/src/js/componentTabs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class TabsSingleton {
1616

1717
// Only tab sets will have a type, init and try to retrieve
1818
this.type = null;
19-
if (this.tabStrips !== null) {
19+
if (this.tabStrips.length > 0) {
2020
this.type = this.tabStrips[0].getAttribute('data-tab-preference');
2121
}
2222
}
@@ -69,7 +69,7 @@ class TabsSingleton {
6969
}
7070

7171
setup() {
72-
if (!this.tabStrips) { return; }
72+
if (this.tabStrips.length < 1) { return; }
7373

7474
this.hideTabBars();
7575

@@ -101,7 +101,7 @@ class TabsSingleton {
101101
}
102102

103103
update() {
104-
if (!this.tabStrips) { return; }
104+
if (this.tabStrips.length < 1) { return; }
105105
let type = this.type;
106106

107107
let tabPref = this.tabPref;

0 commit comments

Comments
 (0)