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