Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(navigation): handle null reference #12641

Merged
merged 3 commits into from
Aug 31, 2017
Merged

fix(navigation): handle null reference #12641

merged 3 commits into from
Aug 31, 2017

Conversation

soumak77
Copy link
Contributor

ensure secondary ID is set

@@ -643,6 +643,8 @@ export class Tabs extends Ion implements AfterViewInit, RootNode, ITabs, Navigat
* @private
*/
_getSelectedTabIndex(secondaryId: string, fallbackIndex: number = 0): number {
secondaryId = secondaryId || '';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason you didn't use default value for parameter? Like secondaryId: string = '', fallbackIndex: number = 0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AmitMY fixed

@soumak77
Copy link
Contributor Author

@danbucholtz can you review this PR and merge it for the next release?

@kensodemann kensodemann merged commit 1069505 into ionic-team:master Aug 31, 2017
@danbucholtz
Copy link
Contributor

@soumak77,

Thanks for the PR!

Thanks,
Dan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants