Skip to content

Commit 79a20bd

Browse files
committed
fixed epub collapse not working
1 parent 7babca7 commit 79a20bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "yomikiru",
33
"productName": "Yomikiru",
4-
"version": "2.14.0",
4+
"version": "2.14.1",
55
"description": "App to read manga / comic / epub offline on desktop",
66
"main": ".webpack/main",
77
"author": {

src/Components/EPubReaderSideList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ const List = memo(
439439
src: string;
440440
index?: number;
441441
}) => {
442-
const show = listShow[index] || true;
442+
const show = index < 0 ? true : listShow[index];
443443
return (
444444
<li
445445
className={`${src === currentChapterURL ? "current" : ""} ${depth === 2 ? "collapse" : ""} ${

0 commit comments

Comments
 (0)