Skip to content

Commit

Permalink
fix: check item.description before using MDC
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 23, 2024
1 parent e086941 commit c5f473b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const hero = computed(() => {
<ULandingSection :title="page.featuresTitle">
<UPageGrid>
<ULandingCard v-for="(item, index) of page.features" :key="index" v-bind="item">
<template #description>
<template v-if="item.description" #description>
<MDC :value="item.description" tag="p" class="prose prose-primary dark:prose-invert" />
</template>
</ULandingCard>
Expand Down

0 comments on commit c5f473b

Please sign in to comment.