mirror of
https://github.com/samsonjs/immich.git
synced 2026-03-25 09:15:56 +00:00
fix: send correct includeArchived parameter to API when showing markers in map (#20117)
Co-authored-by: Pablo Lluch <pablo.lluch@gmail.com> Co-authored-by: Zack Pollard <zackpollard@ymail.com>
This commit is contained in:
parent
6170a3843c
commit
e34f46fa0d
3 changed files with 3 additions and 11 deletions
|
|
@ -12,8 +12,8 @@ Future<List<MapMarker>> mapMarkers(Ref ref) async {
|
|||
final mapState = ref.read(mapStateNotifierProvider);
|
||||
DateTime? fileCreatedAfter;
|
||||
bool? isFavorite;
|
||||
bool? isIncludeArchived;
|
||||
bool? isWithPartners;
|
||||
bool isIncludeArchived = mapState.includeArchived;
|
||||
bool isWithPartners = mapState.withPartners;
|
||||
|
||||
if (mapState.relativeTime != 0) {
|
||||
fileCreatedAfter =
|
||||
|
|
@ -24,14 +24,6 @@ Future<List<MapMarker>> mapMarkers(Ref ref) async {
|
|||
isFavorite = true;
|
||||
}
|
||||
|
||||
if (!mapState.includeArchived) {
|
||||
isIncludeArchived = false;
|
||||
}
|
||||
|
||||
if (mapState.withPartners) {
|
||||
isWithPartners = true;
|
||||
}
|
||||
|
||||
final markers = await service.getMapMarkers(
|
||||
isFavorite: isFavorite,
|
||||
withArchived: isIncludeArchived,
|
||||
|
|
|
|||
BIN
mobile/lib/providers/map/map_marker.provider.g.dart
generated
BIN
mobile/lib/providers/map/map_marker.provider.g.dart
generated
Binary file not shown.
|
|
@ -189,7 +189,7 @@
|
|||
|
||||
return await getMapMarkers(
|
||||
{
|
||||
isArchived: includeArchived && undefined,
|
||||
isArchived: includeArchived || undefined,
|
||||
isFavorite: onlyFavorites || undefined,
|
||||
fileCreatedAfter: fileCreatedAfter || undefined,
|
||||
fileCreatedBefore,
|
||||
|
|
|
|||
Loading…
Reference in a new issue