Fix opening chapter via chapter selection in reader

Guard should have been removed with 4a9d2903b8
This commit is contained in:
schroda
2025-02-23 13:21:32 +01:00
parent ba3f0f6574
commit 52c8734c59

View File

@@ -72,8 +72,6 @@ const BaseReader = ({
chapterForDuplicatesHandling, chapterForDuplicatesHandling,
currentChapter, currentChapter,
setReaderStateChapters, setReaderStateChapters,
firstPageUrl,
totalPages,
setTotalPages, setTotalPages,
setCurrentPageIndex, setCurrentPageIndex,
setPageToScrollToIndex, setPageToScrollToIndex,
@@ -108,7 +106,6 @@ const BaseReader = ({
| 'setTransitionPageMode' | 'setTransitionPageMode'
> & > &
Pick<TReaderTapZoneContext, 'setShowPreview'> & { Pick<TReaderTapZoneContext, 'setShowPreview'> & {
firstPageUrl?: string;
cancelAutoScroll: TReaderAutoScrollContext['cancel']; cancelAutoScroll: TReaderAutoScrollContext['cancel'];
}) => { }) => {
const { t } = useTranslation(); const { t } = useTranslation();
@@ -270,11 +267,6 @@ const BaseReader = ({
return null; return null;
} }
const isPlaceholderPageState = totalPages === 1 && firstPageUrl === requestManager.getBaseUrl();
if (isPlaceholderPageState) {
return null;
}
return ( return (
<Box <Box
sx={{ sx={{
@@ -350,8 +342,6 @@ export const Reader = withPropsFrom(
'chapterForDuplicatesHandling', 'chapterForDuplicatesHandling',
'currentChapter', 'currentChapter',
'setReaderStateChapters', 'setReaderStateChapters',
'firstPageUrl',
'totalPages',
'setTotalPages', 'setTotalPages',
'setCurrentPageIndex', 'setCurrentPageIndex',
'setPageToScrollToIndex', 'setPageToScrollToIndex',