small fix

This commit is contained in:
Daniel Bulant 2022-12-12 21:27:58 +01:00
parent 672b4b59db
commit 75cb7305d8
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View file

@ -14,3 +14,4 @@ dist
.env
.env.*
!.env.example
.envrc

View file

@ -546,9 +546,9 @@
{/if}
</div>
{#if relationships.filter(t => t.type === "manga").length}
{#if relationships.filter(t => t.type === "manga" && typeof t.attributes !== "undefined").length}
<div>
<RelatedManga on:slideToClosest={() => swiper.slideToClosest()} mangaRelations={relationships.filter(t => t.type === "manga")} />
<RelatedManga on:slideToClosest={() => swiper.slideToClosest()} mangaRelations={relationships.filter(t => t.type === "manga" && typeof t.attributes !== "undefined")} />
</div>
{/if}
</div>