Fix null favicon

This commit is contained in:
Juan Gilsanz Polo
2024-02-28 14:39:14 +01:00
parent 0358edf6b6
commit ab92501481

View File

@@ -74,10 +74,10 @@ class FaviconStore extends _$FaviconStore {
)
: null,
)
.where((e) => e != null)
.toList() as List<FaviconItem>;
.toList();
faviconUrls.removeWhere((v) => v == null);
state.favicons = [...state.favicons, ...faviconUrls];
state.favicons = [...state.favicons, ...List<FaviconItem>.from(faviconUrls)];
state.loadingFavicons = false;
ref.notifyListeners();
}