Fixed AMV page rendering bug

This commit is contained in:
Eduard Urbach 2018-06-03 09:13:59 +09:00
parent b5f4585edd
commit c080b337c7
2 changed files with 1 additions and 5 deletions

View File

@ -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.

View File

@ -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)