From 2e0e4d5129ed4912415f61eb8d1da41e88ddcaff Mon Sep 17 00:00:00 2001 From: sct Date: Wed, 23 Dec 2020 17:18:00 +0900 Subject: [PATCH] fix(frontend): filter out undefined backdrop paths for person details page --- src/components/PersonDetails/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PersonDetails/index.tsx b/src/components/PersonDetails/index.tsx index 3609a0263..7eb32fa0b 100644 --- a/src/components/PersonDetails/index.tsx +++ b/src/components/PersonDetails/index.tsx @@ -82,7 +82,7 @@ const PersonDetails: React.FC = () => { media.posterPath) + .filter((media) => media.backdropPath) .map( (media) => `//image.tmdb.org/t/p/w1920_and_h800_multi_faces/${media.backdropPath}`