We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 548614a commit bd05652Copy full SHA for bd05652
lib/src/widgets/posts.dart
@@ -41,7 +41,10 @@ List<_PostListItem> _decodePostsAndTheirReplies(List jsonPosts) {
41
final post = Post.fromJson(map);
42
final postReplies = post.postReplies.map((postReply) {
43
final item = _PostListItem.postReply(postReply);
44
- postReplyItemById[postReply.postId!] = item;
+ final postId = postReply.postId;
45
+ if (postId != null) {
46
+ postReplyItemById[postId] = item;
47
+ }
48
return item;
49
});
50
0 commit comments