Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
update() {
this.tabs = getChildPlaceholder(this.rendering, 'jss-tabs').filter((tab: ComponentRendering) => tab.fields) as ComponentRendering[];
if (!this.activeTab && this.tabs.length > 0) {
this.activeTab = this.tabs[0];
}
}
}