Bug fixes
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
@@ -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,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user