Skip to content

Commit

Permalink
Fix array out of bounds error
Browse files Browse the repository at this point in the history
  • Loading branch information
xzippyzachx committed Apr 18, 2024
1 parent 408e566 commit a59dff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/zine/currentEdition.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</div>
</a>
{/each}
<a href="{data.posts[0].path}" class="flex viewButton w-96 py-10">
<a href="{data.posts.length > 0 ? data.posts[0].path : ''}" class="flex viewButton w-96 py-10">
<div class="text-center m-auto">
MORE <br> ARTICLES
</div>
Expand Down

0 comments on commit a59dff7

Please sign in to comment.