Skip to content

Commit 8c67c6d

Browse files
riophaeposva
authored andcommitted
fix example (#32)
1 parent 90de581 commit 8c67c6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: en/data.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default context => {
122122
router.onReady(() => {
123123
const matchedComponents = router.getMatchedComponents()
124124
if (!matchedComponents.length) {
125-
reject({ code: 404 })
125+
return reject({ code: 404 })
126126
}
127127

128128
// call `asyncData()` on all matched route components

0 commit comments

Comments
 (0)