Skip to content

Commit

Permalink
fix(kit): add null-safety check for resolving matched route, close #708
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Nov 27, 2024
1 parent d02cf1e commit 89127ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/rpc/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const functions = {
getMatchedRoutes(path: string) {
const c = console.warn
console.warn = () => {}
const matched = devtoolsRouter.value?.resolve({
const matched = devtoolsRouter.value?.resolve?.({
path: path || '/',
}).matched ?? []
console.warn = c
Expand Down

0 comments on commit 89127ac

Please sign in to comment.