Skip to content

Commit

Permalink
fix(navigation): ensure secondaryId always has a string value (#12641)
Browse files Browse the repository at this point in the history
  • Loading branch information
soumak77 authored and kensodemann committed Aug 31, 2017
1 parent 295fe78 commit 1069505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tabs/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1069505

Please sign in to comment.