We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1bce28 commit d94799cCopy full SHA for d94799c
lib/repositories/rep/impl/catagory_db_repository.dart
@@ -110,7 +110,7 @@ class CategoryDbRepository implements CategoryRepository {
110
await _categoryDao.addWidgets(po.id, widgetIds);
111
}
112
113
- List<int> likeWidgets = json.decode(likeData);
+ List<int> likeWidgets = (json.decode(likeData) as List).map<int>((e) => e).toList();
114
for (int i = 0; i < likeWidgets.length; i++) {
115
await LocalDb.instance.likeDao.like(likeWidgets[i]);
116
0 commit comments