Fix favorite status toggle on 1st level of comments

codemagic-setup
Hank Grabowski 2023-03-19 22:22:09 -04:00
rodzic 942f6f0ec5
commit bd9e65f9a6
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -468,7 +468,7 @@ class EntryManagerService extends ChangeNotifier {
_entries[update.id] = update;
final node = update.parentId.isEmpty
? _postNodes[update.id]!
: _postNodes[_parentPostIds[update.parentId]]!;
: _postNodes[_parentPostIds[update.id]]!;
notifyListeners();
return Result.ok(_nodeToTreeItem(node, client.profile.userId));