From cdad016d15309d94a639dd9622d10460497f3dd9 Mon Sep 17 00:00:00 2001 From: samipe Date: Mon, 19 Aug 2024 23:50:59 +0300 Subject: [PATCH] fix: find proper index-page --- src/views/Home.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 3ce63d4a..516af6da 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -47,7 +47,8 @@ export default { computed: { ...mapState(useStore, ['pages']), sections() { - return this.pages[0].fields.pageBody.content + const page = this.pages.find((p) => p.fields.pageName === '2025') ?? this.pages[0] + return page.fields.pageBody.content .filter((c) => c.nodeType === 'embedded-entry-block') .map((c) => c) } @@ -94,7 +95,7 @@ export default { } if (type === 'sponsor') { const {sponsorName, sponsorTier, href, sponsorLogo} = target.fields - return h(SponsorItem, {href, name: sponsorName, src: sponsorLogo?.fields?.file?.url, important: sponsorTier}) + return h(SponsorItem, {href, name: sponsorName, src: sponsorLogo?.fields?.file?.url, important: !!sponsorTier}) } return ''