Skip to content

Commit

Permalink
chore(#150): fix missing path
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Aug 29, 2021
1 parent 0df1203 commit 2d4f933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const actions = {
async nuxtServerInit ({ commit }, { $content }) {
try {
// Add Guide menu children to the vuex store.
const apiIndex = await $content("api").only(["title"]).fetch();
const apiIndex = await $content("api").only(["path", "title"]).fetch();
const apiChildren = apiIndex.map((o) => ({
component: "NuxtLink",
text: o.title,
Expand All @@ -11,7 +11,7 @@ export const actions = {
commit("addMenuChildren", { children: apiChildren, parent: "/api" });

// Add Guide menu children to the vuex store.
const guideIndex = await $content("guide").only(["title"]).fetch();
const guideIndex = await $content("guide").only(["path", "title"]).fetch();
const guideChildren = guideIndex.map((o) => ({
component: "NuxtLink",
text: o.title,
Expand Down

0 comments on commit 2d4f933

Please sign in to comment.