Fix null favicon
This commit is contained in:
@@ -74,10 +74,10 @@ class FaviconStore extends _$FaviconStore {
|
|||||||
)
|
)
|
||||||
: null,
|
: null,
|
||||||
)
|
)
|
||||||
.where((e) => e != null)
|
.toList();
|
||||||
.toList() as List<FaviconItem>;
|
faviconUrls.removeWhere((v) => v == null);
|
||||||
|
|
||||||
state.favicons = [...state.favicons, ...faviconUrls];
|
state.favicons = [...state.favicons, ...List<FaviconItem>.from(faviconUrls)];
|
||||||
state.loadingFavicons = false;
|
state.loadingFavicons = false;
|
||||||
ref.notifyListeners();
|
ref.notifyListeners();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user