fix: Show any enabled libraries in home screen (#300)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2025-04-05 22:50:42 +02:00 committed by GitHub
parent 7a50e0cb0f
commit 5b3d5b8900
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,7 +47,6 @@ class ViewsNotifier extends StateNotifier<ViewsModel> {
if (createdViews != null) {
newList = await Future.wait(createdViews.map((e) async {
if (ref.read(userProvider)?.latestItemsExcludes.contains(e.id) == true) return e;
if ([CollectionType.boxsets, CollectionType.folders].contains(e.collectionType)) return e;
final recents = await api.usersUserIdItemsLatestGet(
parentId: e.id,
imageTypeLimit: 1,
@ -75,7 +74,6 @@ class ViewsNotifier extends StateNotifier<ViewsModel> {
views: newList,
dashboardViews: newList
.where((element) => !(ref.read(userProvider)?.latestItemsExcludes.contains(element.id) ?? true))
.where((element) => ![CollectionType.boxsets, CollectionType.folders].contains(element.collectionType))
.toList(),
loading: false);
}