From e34f46fa0d32389720beffa736720dbf6ade27cf Mon Sep 17 00:00:00 2001 From: Pablo Lluch Date: Thu, 24 Jul 2025 13:34:06 -0700 Subject: [PATCH] fix: send correct includeArchived parameter to API when showing markers in map (#20117) Co-authored-by: Pablo Lluch Co-authored-by: Zack Pollard --- .../providers/map/map_marker.provider.dart | 12 ++---------- .../providers/map/map_marker.provider.g.dart | Bin 1020 -> 1020 bytes .../shared-components/map/map.svelte | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/mobile/lib/providers/map/map_marker.provider.dart b/mobile/lib/providers/map/map_marker.provider.dart index 23342b77b..a0a11a063 100644 --- a/mobile/lib/providers/map/map_marker.provider.dart +++ b/mobile/lib/providers/map/map_marker.provider.dart @@ -12,8 +12,8 @@ Future> 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> 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, diff --git a/mobile/lib/providers/map/map_marker.provider.g.dart b/mobile/lib/providers/map/map_marker.provider.g.dart index 76cc44a103d02961c67d58bc37a33bb768b8f532..a4c1db7dc06c047f54188d53d88c4252827845be 100644 GIT binary patch delta 53 zcmeyv{)c^oBBMs4L9(HdWmZ9(l4VkIs!3uZkZY7`VxDMWYLS>^mYQamY`NK! HaWfMD<0uhM delta 53 zcmeyv{)c^oBBMr{v2kLuNm62>v5~1^l5v`WnTe5cVrp`#g{7Ifv9Y14rI}fpg@x&6 IPsYtm0JozLNB{r; diff --git a/web/src/lib/components/shared-components/map/map.svelte b/web/src/lib/components/shared-components/map/map.svelte index 8e3a37cbf..8d508552b 100644 --- a/web/src/lib/components/shared-components/map/map.svelte +++ b/web/src/lib/components/shared-components/map/map.svelte @@ -189,7 +189,7 @@ return await getMapMarkers( { - isArchived: includeArchived && undefined, + isArchived: includeArchived || undefined, isFavorite: onlyFavorites || undefined, fileCreatedAfter: fileCreatedAfter || undefined, fileCreatedBefore,