chore(): fix build error

This commit is contained in:
Dan Bucholtz
2018-02-16 11:58:01 -06:00
parent 910fd00159
commit 6e2bf74f87

View File

@ -1348,7 +1348,7 @@ export function getDefaultEscapeHatch(): EscapeHatch {
}; };
} }
export function reconcileFromExternalRouterImpl(nav: Nav, component: any, data: any = {}, escapeHatch: EscapeHatch, isTopLevel: boolean) { export function reconcileFromExternalRouterImpl(nav: Nav, component: any, data: any = {}, escapeHatch: EscapeHatch, isTopLevel: boolean): Promise<NavResult> {
// check if the nav has an `<ion-tab>` as a parent // check if the nav has an `<ion-tab>` as a parent
if (isParentTab(nav.element as any)) { if (isParentTab(nav.element as any)) {
// check if the tab is selected // check if the tab is selected
@ -1374,8 +1374,10 @@ export function updateTab(nav: Nav, component: any, data: any, escapeHatch: Esca
}).then(() => { }).then(() => {
// okay, the tab is not selected, so we need to do a "switch" transition // okay, the tab is not selected, so we need to do a "switch" transition
// basically, we should update the nav, and then swap the tabs // basically, we should update the nav, and then swap the tabs
return promise.then(() => { return promise.then((navResult) => {
return tabs.select(tab); return tabs.select(tab).then(() => {
return navResult;
});
}); });
}); });
} }