Bug fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class TagsResponse {
|
||||
final int? count;
|
||||
final int? next;
|
||||
final int? previous;
|
||||
final String? next;
|
||||
final String? previous;
|
||||
final List<Tag>? results;
|
||||
|
||||
TagsResponse({
|
||||
|
||||
@@ -58,7 +58,17 @@ class FaviconStore extends _$FaviconStore {
|
||||
final notExist = bookmarks.map((b) => b.url!).where((b) => !mappedSaved.contains(b)).toList();
|
||||
|
||||
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,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user