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 be1c3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uni/lib/model/providers/lazy/bus_stop_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class BusStopProvider extends StateProviderNotifier<Map<String, BusStopData>> {
state!.remove(stopCode);

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

final db = AppBusStopDatabase();
Expand Down

0 comments on commit be1c3ae

Please sign in to comment.