mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(NavRegistry): load empty view array if undefined
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
* Map of possible views that can be navigated to using an Ionic NavController
|
||||
*/
|
||||
export class NavRegistry {
|
||||
constructor(views) {
|
||||
constructor(views=[]) {
|
||||
this._views = new Map(views.map(view => [view.name, view]));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user