Don't show directed by line if director is unknown

This commit is contained in:
Damontecres 2026-02-10 14:59:27 -05:00
parent df2f03cf83
commit f7efbf9f87
No known key found for this signature in database

View file

@ -113,6 +113,7 @@ fun MovieDetailsHeader(
movie.data.people movie.data.people
?.filter { it.type == PersonKind.DIRECTOR && it.name.isNotNullOrBlank() } ?.filter { it.type == PersonKind.DIRECTOR && it.name.isNotNullOrBlank() }
?.joinToString(", ") { it.name!! } ?.joinToString(", ") { it.name!! }
?.takeIf { it.isNotNullOrBlank() }
} }
directorName directorName