[ServerMapping][Codegen] Update to latest server gql MangaType changes (#546)
This commit is contained in:
@@ -85,7 +85,7 @@ export const MangaCard = (props: IProps) => {
|
||||
downloadCount,
|
||||
unreadCount: unread,
|
||||
inLibrary,
|
||||
lastReadChapter,
|
||||
latestReadChapter,
|
||||
chapters,
|
||||
} = manga;
|
||||
const thumbnailUrl = tmpThumbnailUrl ?? 'nonExistingMangaUrl';
|
||||
@@ -95,8 +95,8 @@ export const MangaCard = (props: IProps) => {
|
||||
|
||||
const mangaLinkTo = `/manga/${id}/`;
|
||||
|
||||
const nextChapterIndexToRead = (lastReadChapter?.sourceOrder ?? 0) + 1;
|
||||
const isLatestChapterRead = chapters?.totalCount === lastReadChapter?.sourceOrder;
|
||||
const nextChapterIndexToRead = (latestReadChapter?.sourceOrder ?? 0) + 1;
|
||||
const isLatestChapterRead = chapters?.totalCount === latestReadChapter?.sourceOrder;
|
||||
|
||||
if (gridLayout !== GridLayout.List) {
|
||||
return (
|
||||
|
||||
@@ -78,8 +78,8 @@ export const ChapterList: React.FC<IProps> = ({ manga, isRefreshing }) => {
|
||||
|
||||
const visibleChapters = useMemo(() => filterAndSortChapters(chapters, options), [chapters, options]);
|
||||
|
||||
const nextChapterIndexToRead = (manga.lastReadChapter?.sourceOrder ?? 0) + 1;
|
||||
const isLatestChapterRead = manga.chapters.totalCount === manga.lastReadChapter?.sourceOrder;
|
||||
const nextChapterIndexToRead = (manga.latestReadChapter?.sourceOrder ?? 0) + 1;
|
||||
const isLatestChapterRead = manga.chapters.totalCount === manga.latestReadChapter?.sourceOrder;
|
||||
|
||||
const areAllChaptersRead = manga.unreadCount === 0;
|
||||
const areAllChaptersDownloaded = manga.downloadCount === manga.chapters.totalCount;
|
||||
|
||||
Reference in New Issue
Block a user