Fixed anime page for undefined relations
This commit is contained in:
parent
818a77c247
commit
c8e015317e
@ -148,6 +148,7 @@ component AnimeRelations(anime *arn.Anime, user *arn.User)
|
||||
h3.anime-section-name Relations
|
||||
.anime-relations
|
||||
each relation in anime.Relations().Items
|
||||
if relation.Anime() != nil
|
||||
a.anime-relation.mountable.ajax(href=relation.Anime().Link(), title=relation.Anime().Title.ByUser(user), data-mountable-type="relation")
|
||||
img.anime-relation-image.lazy(data-src=relation.Anime().ImageLink("small"), data-webp="true", data-color=relation.Anime().AverageColor(), alt=relation.Anime().Title.ByUser(user))
|
||||
.anime-relation-type= relation.HumanReadableType()
|
||||
|
Loading…
Reference in New Issue
Block a user