Bug fixes

This commit is contained in:
Juan Gilsanz Polo
2024-02-29 21:59:57 +01:00
parent 67a9922275
commit 8537f38fac
2 changed files with 13 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
class TagsResponse { class TagsResponse {
final int? count; final int? count;
final int? next; final String? next;
final int? previous; final String? previous;
final List<Tag>? results; final List<Tag>? results;
TagsResponse({ TagsResponse({

View File

@@ -58,7 +58,17 @@ class FaviconStore extends _$FaviconStore {
final notExist = bookmarks.map((b) => b.url!).where((b) => !mappedSaved.contains(b)).toList(); final notExist = bookmarks.map((b) => b.url!).where((b) => !mappedSaved.contains(b)).toList();
final favicons = await compute( final favicons = await compute(
(message) => Future.wait(message.map((e) => FaviconFinder.getBest(e))), (message) => Future.wait(
message.map(
(e) {
try {
return FaviconFinder.getBest(e);
} catch (_) {
return Future.delayed(Duration.zero);
}
},
),
),
notExist, notExist,
); );