mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-31 19:18:26 +01:00
fix cast npe
This commit is contained in:
@@ -10,7 +10,7 @@ const CastSlide: React.FC<
|
|||||||
{ details?: MovieDetails | TvDetails } & ViewProps
|
{ details?: MovieDetails | TvDetails } & ViewProps
|
||||||
> = ({ details, ...props }) => {
|
> = ({ details, ...props }) => {
|
||||||
return (
|
return (
|
||||||
details?.credits?.cast?.length &&
|
details?.credits?.cast &&
|
||||||
details?.credits?.cast?.length > 0 && (
|
details?.credits?.cast?.length > 0 && (
|
||||||
<View {...props}>
|
<View {...props}>
|
||||||
<Text className="text-lg font-bold mb-2 px-4">Cast</Text>
|
<Text className="text-lg font-bold mb-2 px-4">Cast</Text>
|
||||||
|
|||||||
Reference in New Issue
Block a user