[Comic Source] Improve data conversion

This commit is contained in:
2025-04-05 17:18:53 +08:00
parent 463ad5b5bc
commit d91bca6913
4 changed files with 11 additions and 11 deletions

View File

@@ -169,7 +169,9 @@ class ComicDetails with HistoryMixin {
static Map<String, List<String>> _generateMap(Map<dynamic, dynamic> map) {
var res = <String, List<String>>{};
map.forEach((key, value) {
res[key] = List<String>.from(value);
if (value is List) {
res[key] = List<String>.from(value);
}
});
return res;
}