Fix opening chapter via chapter selection in reader
Guard should have been removed with 4a9d2903b8
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user