Skip to content

Commit

Permalink
Fix casting issue
Browse files Browse the repository at this point in the history
Rexios80 committed Jul 30, 2024
1 parent 26c636d commit 01090b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pub_stats/lib/repo/database_repo.dart
Original file line number Diff line number Diff line change
@@ -86,7 +86,8 @@ class DatabaseRepo {
if (value == null) return [];

return value
.cast<Map<String, dynamic>>()
.cast<Map>()
.map((e) => e.cast<String, dynamic>())
.map(AlertConfig.fromJson)
.toList();
}

0 comments on commit 01090b7

Please sign in to comment.