Fixed dashboard

This commit is contained in:
2017-10-15 20:26:50 +02:00
parent d1c26252ac
commit e635be5291
2 changed files with 7 additions and 2 deletions

View File

@ -60,7 +60,9 @@ func Get(ctx *aero.Context) string {
}
}, func() {
var err error
soundTracks, err = arn.AllSoundTracks()
soundTracks, err = arn.FilterSoundTracks(func(track *arn.SoundTrack) bool {
return !track.IsDraft && len(track.Media) > 0
})
if err != nil {
return