Skip to content

Commit

Permalink
fix(nuxt): handle missing Nuxt context in useRoute (#26633)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini-ghost committed Apr 3, 2024
1 parent a3a28a9 commit af3594c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/nuxt/src/app/composables/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ const isProcessingMiddleware = () => {
return true
}
} catch {
// Within an async middleware
return true
return false
}
return false
}
Expand Down

0 comments on commit af3594c

Please sign in to comment.