mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +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 4 additions and 12 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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue