Skip to content

Commit

Permalink
react:fix Possible undefined value
Browse files Browse the repository at this point in the history
  • Loading branch information
frandiox committed Apr 7, 2021
1 parent 3501677 commit a119b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function resolvePropsRoute(routes, path, base) {
const routeBase = base && withoutSuffix(base({ url }), '/')
const fullPath = getFullPath(url, routeBase)

const [{ route, match } = {}] = matchRoutes(routes, url.pathname)
const [{ route, match = {} } = {}] = matchRoutes(routes, url.pathname)

const data = {
...route,
Expand Down

0 comments on commit a119b20

Please sign in to comment.