Fixed AMV page rendering bug
This commit is contained in:
parent
b5f4585edd
commit
c080b337c7
@ -20,10 +20,6 @@ matrix:
|
|||||||
# tests pass on the stable versions of Go.
|
# tests pass on the stable versions of Go.
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
# Don't email me the results of the test runs.
|
|
||||||
notifications:
|
|
||||||
email: false
|
|
||||||
|
|
||||||
# Anything in before_script that returns a nonzero exit code will
|
# Anything in before_script that returns a nonzero exit code will
|
||||||
# flunk the build and immediately stop. It's sorta like having
|
# flunk the build and immediately stop. It's sorta like having
|
||||||
# set -e enabled in bash.
|
# set -e enabled in bash.
|
||||||
|
@ -14,7 +14,7 @@ component AMVPage(amv *arn.AMV, user *arn.User)
|
|||||||
.widget
|
.widget
|
||||||
h3.widget-title.mountable Anime
|
h3.widget-title.mountable Anime
|
||||||
|
|
||||||
if amv.MainAnimeID != ""
|
if amv.MainAnimeID != "" && amv.MainAnime() != nil
|
||||||
.amv-main-anime.mountable
|
.amv-main-anime.mountable
|
||||||
AnimeGrid([]*arn.Anime{amv.MainAnime()}, user)
|
AnimeGrid([]*arn.Anime{amv.MainAnime()}, user)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user