Skip to content

Commit

Permalink
Small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Oct 6, 2015
1 parent e738c88 commit 4446897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/RouteUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function createRoutesFromReactChildren(children, parentRoute) {
export function createRoutes(routes) {
if (isReactChildren(routes)) {
routes = createRoutesFromReactChildren(routes)
} else if (!Array.isArray(routes)) {
} else if (routes && !Array.isArray(routes)) {
routes = [ routes ]
}

Expand Down

0 comments on commit 4446897

Please sign in to comment.