Skip to content

Commit

Permalink
resolve tail blog exception if gear connects before blog loads
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Dec 6, 2024
1 parent 61b961a commit 8ef494a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Frontend/Widgets/tail_blog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ class _TailBlogState extends State<TailBlog> {
}
}
}
if (mounted && context.mounted && results.isNotEmpty) {
if (mounted && context.mounted) {
setState(() {
feedState = FeedState.loaded;
});
} else if (context.mounted) {
setState(() {
feedState = FeedState.error;
if (results.isNotEmpty) {
feedState = FeedState.loaded;
} else {
feedState = FeedState.error;
}
});
}
}
Expand Down

0 comments on commit 8ef494a

Please sign in to comment.