From c5e6980d64b282d369ef365aea6c85777fa66884 Mon Sep 17 00:00:00 2001 From: pghorpade Date: Thu, 15 Feb 2024 14:17:33 -0800 Subject: [PATCH] fix: remove unnecessary comented code --- pages/about/reports/index.vue | 6 ------ pages/impact/[year]/[slug].vue | 6 ------ pages/impact/[year]/index.vue | 19 ++++--------------- 3 files changed, 4 insertions(+), 27 deletions(-) diff --git a/pages/about/reports/index.vue b/pages/about/reports/index.vue index bd7b62fb3..4159a9ea4 100644 --- a/pages/about/reports/index.vue +++ b/pages/about/reports/index.vue @@ -9,16 +9,10 @@ import IMPACT_REPORTS_LIST from '../gql/queries/ImpactReportsList.gql' const { $graphql } = useNuxtApp() const { data: page, error } = await useAsyncData('impact-report-all-list', async () => { - // try { const data = await $graphql.default.request(IMPACT_REPORTS_LIST) - // console.log("Fetched data:", JSON.stringify(data)) return data - /* } catch (error) { - console.error("Error fetching data:", error) - } */ }) if (error.value) { - // console.log(error.value) throw createError({ statusCode: 404, statusMessage: 'Page not found.', fatal: true }) diff --git a/pages/impact/[year]/[slug].vue b/pages/impact/[year]/[slug].vue index 92e398792..7688e2059 100644 --- a/pages/impact/[year]/[slug].vue +++ b/pages/impact/[year]/[slug].vue @@ -14,17 +14,11 @@ const route = useRoute() const variables = { slug: route.params.slug } const { data, error } = await useAsyncData('impact-report-index', async () => { - // try { const data = await $graphql.default.request(IMPACT_REPORT_STORY, variables) - // console.log("Fetched data:", JSON.stringify(data)) return data - /* } catch (error) { - console.error("Error fetching data:", error) - } */ }) if (error.value) { - // console.log(error.value) throw createError({ statusCode: 404, statusMessage: 'Page not found.' + error.value, fatal: true }) diff --git a/pages/impact/[year]/index.vue b/pages/impact/[year]/index.vue index 523d93f43..85868930e 100644 --- a/pages/impact/[year]/index.vue +++ b/pages/impact/[year]/index.vue @@ -17,24 +17,16 @@ definePageMeta({ }) const route = useRoute() const path = route.params && route.params.year ? `impact/${route.params.year}` : '*' -// console.log("Path: ", path) const variables = { path } const { data, error } = await useAsyncData('impact-report-index', async () => { - // try { const data = await $graphql.default.request(IMPACT_REPORT, variables) - // console.log("Fetched data:", JSON.stringify(data)) return data - /* } catch (error) { - console.error("Error fetching data:", error) - } */ }) if (error.value) { - // console.log(error.value) throw createError({ statusCode: 404, statusMessage: 'Page not found.', fatal: true }) } -// console.log("Impact Report data:", JSON.stringify(data)) if (!data.value.entry) { throw createError({ statusCode: 404, @@ -43,7 +35,6 @@ if (!data.value.entry) { } const page = ref(_get(data.value, 'entry', {})) -// console.log("Impact Report page:", JSON.stringify(page.value.text)) useHead({ title: page.value?.title || '... loading', meta: [ @@ -155,12 +146,10 @@ const timelineSortedBySubtitle = computed(() => { /> -

+

{{ page.acknowledgements[0].titleGeneral }}