Skip to content

Commit

Permalink
fix: Use sorted locations when not loading anymore; Closes #134
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 committed Oct 27, 2023
1 parent b83bfb6 commit 5bb3fa0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class _LocationPointsListState extends State<LocationPointsList> {
final locationFetchers = context.watch<LocationFetchers>();
final fetcher = locationFetchers.findFetcher(widget.view)!;
final locations = fetcher.isLoading
? fetcher.sortedLocations
: fetcher.locations.toList();
? fetcher.locations.toList()
: fetcher.sortedLocations.toList();

return ListView.builder(
shrinkWrap: true,
Expand Down

0 comments on commit 5bb3fa0

Please sign in to comment.