Skip to content

Commit

Permalink
Missed some awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
r52 committed Aug 15, 2023
1 parent 30241f7 commit 8ddc5ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mangadex/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,7 @@ class MangaChapters extends _$MangaChapters {
final api = ref.watch(mangadexProvider);
state = const AsyncValue.loading();
state = await AsyncValue.guard(() async {
api.invalidateAll('fetchMangaChapters(${manga.id}');
await api.invalidateAll('fetchMangaChapters(${manga.id}');
_offset = 0;
_atEnd = false;
return _fetchMangaChapters(_offset);
Expand Down Expand Up @@ -1769,7 +1769,7 @@ class MangaCovers extends _$MangaCovers {
final api = ref.watch(mangadexProvider);
state = const AsyncValue.loading();
state = await AsyncValue.guard(() async {
api.invalidateAll('getCoverList(${manga.id}');
await api.invalidateAll('getCoverList(${manga.id}');
_offset = 0;
_atEnd = false;
return _fetchCovers(_offset);
Expand Down

0 comments on commit 8ddc5ab

Please sign in to comment.