mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Fix the issue where local comics page can not been opened when there is a comic with empty chapter list. Close #309
This commit is contained in:
@@ -342,7 +342,8 @@ class ComicChapters {
|
|||||||
} else if (groupedChapters.isNotEmpty) {
|
} else if (groupedChapters.isNotEmpty) {
|
||||||
return ComicChapters.grouped(groupedChapters);
|
return ComicChapters.grouped(groupedChapters);
|
||||||
} else {
|
} else {
|
||||||
throw ArgumentError("Empty chapter list");
|
// return a empty list.
|
||||||
|
return ComicChapters(chapters);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user