From e64e2055bde470e8b3713cfce1f8a9a885481013 Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Wed, 1 Sep 2021 21:45:04 +0000 Subject: [PATCH] fix(#179): fix module index page --- docs/pages/modules/index.vue | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/docs/pages/modules/index.vue b/docs/pages/modules/index.vue index 9894d9331..d43edc137 100644 --- a/docs/pages/modules/index.vue +++ b/docs/pages/modules/index.vue @@ -18,13 +18,13 @@

- + Get Started API documentation @@ -39,24 +39,5 @@ import Default from "./_.vue"; export default { extends: Default, - - async asyncData(ctx) { - const { $content, error } = ctx; - let response; - try { - response = await $content("modules") - .where({ slug: { $ne: "README" } }) - .only(["description", "path", "slug", "title"]) - .sortBy("title") - .fetch(); - } catch (e) { - return error({ message: "Document not found" }); - } - - return { - ...(await Default.asyncData(ctx)), - modules: response, - }; - }, };