Skip to content

Commit 0a31d30

Browse files
committed
fix: Specify default routes struct so to avoid potential crashes
1 parent 0df878c commit 0a31d30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class RouterService {
106106
* @param {RouterService} routerOptions Router Service options
107107
*/
108108
public constructor(
109-
{ routes }: NSVueRouterOptions,
109+
{ routes = [] }: NSVueRouterOptions,
110110
{
111111
routeToCallback = null,
112112
routeBackCallback = null,

0 commit comments

Comments
 (0)