Skip to content

Commit d94799c

Browse files
committed
✨ 同步时收藏集处理
1 parent d1bce28 commit d94799c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/repositories/rep/impl/catagory_db_repository.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class CategoryDbRepository implements CategoryRepository {
110110
await _categoryDao.addWidgets(po.id, widgetIds);
111111
}
112112
}
113-
List<int> likeWidgets = json.decode(likeData);
113+
List<int> likeWidgets = (json.decode(likeData) as List).map<int>((e) => e).toList();
114114
for (int i = 0; i < likeWidgets.length; i++) {
115115
await LocalDb.instance.likeDao.like(likeWidgets[i]);
116116
}

0 commit comments

Comments
 (0)