Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 1b28f03506 - Show all commits

View File

@ -96,7 +96,7 @@ final class AnimeListTransformer extends AbstractTransformer {
'titles' => $titles,
'slug' => $anime['slug'],
'show_type' => (string)StringType::from($anime['subtype'])->upperCaseFirst(),
'cover_image' => $anime['posterImage']['views'][1]['url'],
'cover_image' => $anime['posterImage']['views'][1]['url'] ?? '/public/images/placeholder.png',
'genres' => $genres,
'streaming_links' => $streamingLinks,
],