We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0592f09 commit bd50188Copy full SHA for bd50188
1 file changed
src/components/Cards/ArticleCard.svelte
@@ -21,11 +21,13 @@
21
{/if}
22
</div>
23
<h2 class="font-extrabold text-xl">{title}</h2>
24
- <p class="text-sm">
25
- {#each authors as author, i }
26
- <span>{author.authors_id.name || ''}{#if i < (authors.length-1)}, {/if}</span>
27
- {/each}
28
- </p>
+ {#if authors }
+ <p class="text-sm">
+ {#each authors as author, i }
+ <span>{author.authors_id.name || ''}{#if i < (authors.length-1)}, {/if}</span>
+ {/each}
29
+ </p>
30
+ {/if}
31
<p class="text-sm text-gray-400">{date}</p>
32
33
0 commit comments