From 106950533c33ee539f8852cad67bf290cf02973e Mon Sep 17 00:00:00 2001 From: Brian Soumakian Date: Thu, 31 Aug 2017 10:31:14 -0700 Subject: [PATCH] fix(navigation): ensure secondaryId always has a string value (#12641) --- src/components/tabs/tabs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tabs/tabs.ts b/src/components/tabs/tabs.ts index 302432d1e62..1ec729995e5 100644 --- a/src/components/tabs/tabs.ts +++ b/src/components/tabs/tabs.ts @@ -642,7 +642,7 @@ export class Tabs extends Ion implements AfterViewInit, RootNode, ITabs, Navigat /** * @private */ - _getSelectedTabIndex(secondaryId: string, fallbackIndex: number = 0): number { + _getSelectedTabIndex(secondaryId: string = '', fallbackIndex: number = 0): number { // we found a segment which probably represents which tab to select const indexMatch = secondaryId.match(/tab-(\d+)/); if (indexMatch) {