mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2025-01-26 07:15:30 +01:00
Fix white screen if the manga doesn't have genre.
This commit is contained in:
parent
309803368b
commit
b884d34bdf
@ -135,6 +135,9 @@ export default function MangaDetails(props: IProps) {
|
|||||||
const { setAction } = useContext(NavbarContext);
|
const { setAction } = useContext(NavbarContext);
|
||||||
|
|
||||||
const { manga } = props;
|
const { manga } = props;
|
||||||
|
if (manga.genre == null) {
|
||||||
|
manga.genre = '';
|
||||||
|
}
|
||||||
const [inLibrary, setInLibrary] = useState<string>(
|
const [inLibrary, setInLibrary] = useState<string>(
|
||||||
manga.inLibrary ? 'In Library' : 'Add To Library',
|
manga.inLibrary ? 'In Library' : 'Add To Library',
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user