Skip to content

Commit

Permalink
hotfix: concurrent modification in bus stop provider
Browse files Browse the repository at this point in the history
  • Loading branch information
limwa committed Mar 7, 2024
1 parent bc644d1 commit 91c27d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uni/lib/model/providers/lazy/bus_stop_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ class BusStopProvider extends StateProviderNotifier<Map<String, BusStopData>> {
String stopCode,
) async {
state!.remove(stopCode);

notifyListeners();
await fetchUserBusTrips(state!);

await fetchUserBusTrips(Map.of(state!));
notifyListeners();

final db = AppBusStopDatabase();
Expand Down

0 comments on commit 91c27d4

Please sign in to comment.