Skip to content

Commit

Permalink
(search) Fix 500 search result skipped error
Browse files Browse the repository at this point in the history
  • Loading branch information
violet-dev committed Aug 14, 2020
1 parent 443ced9 commit 8a476df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pages/search/search_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class _SearchPageState extends State<SearchPage>

Future<void> loadNextQuery() async {
if (queryEnd) return;
if (latestQuery.item1.item2 == -1) return;
if (latestQuery.item1 != null && latestQuery.item1.item2 == -1) return;
var next = await HentaiManager.search(latestQuery.item2,
latestQuery.item1 == null ? 0 : latestQuery.item1.item2);

Expand Down

0 comments on commit 8a476df

Please sign in to comment.