fix(tabs): fix tabs rootNav

This commit is contained in:
Adam Bradley
2016-06-21 14:37:57 -05:00
parent ed6d0fa13b
commit ae40edf810
2 changed files with 11 additions and 11 deletions

View File

@@ -509,7 +509,7 @@ export class Tabs extends Ion {
*/
get rootNav(): NavController {
let nav = this.parent;
while (nav.parent) {
while (nav && nav.parent) {
nav = nav.parent;
}
return nav;