From 1e4fda7daa7f14f2b7f8f104fc3635101c4ab13b Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 28 Apr 2024 22:02:25 +0800 Subject: [PATCH] :bug: Fix add reaction to non-reaction post cause infinite loading --- lib/widgets/posts/item.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/posts/item.dart b/lib/widgets/posts/item.dart index 638311e..6a7cefe 100644 --- a/lib/widgets/posts/item.dart +++ b/lib/widgets/posts/item.dart @@ -135,7 +135,7 @@ class _PostItemState extends State { @override void initState() { - reactionList = widget.item.reactionList; + reactionList = widget.item.reactionList ?? {}; super.initState(); }