]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: avoid type error
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 2 May 2022 16:46:08 +0000 (18:46 +0200)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Thu, 30 Jun 2022 07:59:00 +0000 (09:59 +0200)
src/navigationGuards.ts

index 8a6091c96ff6798074cb56002f04a933c2d1735c..ae9e142fd6c090a7678f6c20a8bff70bbd50709f 100644 (file)
@@ -385,6 +385,7 @@ export function loadRouteLocation(
                       // replace the function with the resolved component
                       // cannot be null or undefined because we went into the for loop
                       record.components![name] = resolvedComponent
+                      return
                     })
                   )
                 }