Skip to content

Commit

Permalink
fix(VPLCollectionHeader): fallback to empty array for authors (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdvlpr committed Mar 28, 2024
1 parent ae1f09c commit 441d638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/VPLCollectionHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import Link from './VPLLink.vue';
const {frontmatter, page} = useData();
const authors = computed(() => frontmatter.value?.authors ?? false);
const authors = computed(() => frontmatter.value?.authors ?? []);
const collection = computed(() => frontmatter.value?.collection ?? false);
const icon = computed(() => page.value?.collection?.icon ?? false);
const iconLink = computed(() => page.value?.collection?.iconLink ?? false);
Expand Down

0 comments on commit 441d638

Please sign in to comment.