We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d79dd2e + 9f75f58 commit 2c02b35Copy full SHA for 2c02b35
ui/action-bar/action-bar.ios.ts
@@ -44,7 +44,7 @@ export class ActionBar extends common.ActionBar {
44
45
// Find previous ViewController in the navigation stack
46
var indexOfViewController = navController.viewControllers.indexOfObject(viewController);
47
- if (indexOfViewController !== NSNotFound && indexOfViewController > 0) {
+ if (indexOfViewController < navController.viewControllers.count && indexOfViewController > 0) {
48
previousController = navController.viewControllers[indexOfViewController - 1];
49
}
50
0 commit comments