Compare commits
No commits in common. "main" and "feature/localeDate" have entirely different histories.
main
...
feature/lo
@ -484,6 +484,7 @@ class _MyHomePageState extends State<ListItemMenu> {
|
||||
// Update state after getting the response
|
||||
|
||||
setState(() {
|
||||
if (body.isNotEmpty) {
|
||||
int counter = filteredPosts.length;
|
||||
// If we have results, map them to Events
|
||||
filteredPosts = body
|
||||
@ -492,6 +493,7 @@ class _MyHomePageState extends State<ListItemMenu> {
|
||||
if (counter == filteredPosts.length) {
|
||||
_fetchCount--;
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
throw Exception('Failed to load posts');
|
||||
|
Loading…
x
Reference in New Issue
Block a user