mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix: Show any enabled libraries in home screen (#300)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
7a50e0cb0f
commit
5b3d5b8900
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue