Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxt): don't use or assignment (#8299)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 19, 2022
1 parent aa76d7b commit d3f3f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/composables/preload.ts
Expand Up @@ -41,7 +41,7 @@ export async function preloadRouteComponents (to: string, router: Router & { _ro
if (router._routePreloaded.has(to)) { return }
router._routePreloaded.add(to)

const promises = router._preloadPromises ||= []
const promises = router._preloadPromises = router._preloadPromises || []

if (promises.length > 4) {
// Defer adding new preload requests until the existing ones have resolved
Expand Down

0 comments on commit d3f3f9f

Please sign in to comment.