From b884d34bdff8ad87bde109ae11bba5deaa169919 Mon Sep 17 00:00:00 2001 From: Arias800 Date: Sat, 10 Apr 2021 19:42:05 +0200 Subject: [PATCH] Fix white screen if the manga doesn't have genre. --- webUI/react/src/components/MangaDetails.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webUI/react/src/components/MangaDetails.tsx b/webUI/react/src/components/MangaDetails.tsx index 867b9fa..ec43702 100644 --- a/webUI/react/src/components/MangaDetails.tsx +++ b/webUI/react/src/components/MangaDetails.tsx @@ -135,6 +135,9 @@ export default function MangaDetails(props: IProps) { const { setAction } = useContext(NavbarContext); const { manga } = props; + if (manga.genre == null) { + manga.genre = ''; + } const [inLibrary, setInLibrary] = useState( manga.inLibrary ? 'In Library' : 'Add To Library', );