High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): null check on null value on top app bar (#6406)
Alex76bad762d707
diff --git a/mobile/ios/Podfile.lock b/mobile/ios/Podfile.lockindex 24a209cec2..45f2dc1c52 100644--- a/mobile/ios/Podfile.lock+++ b/mobile/ios/Podfile.lock@@ -179,4 +179,4 @@ SPEC CHECKSUMS:PODFILE CHECKSUM: 599d8aeb73728400c15364e734525722250a5382-COCOAPODS: 1.11.3+COCOAPODS: 1.12.1diff --git a/mobile/lib/modules/asset_viewer/ui/top_control_app_bar.dart b/mobile/lib/modules/asset_viewer/ui/top_control_app_bar.dartindex abdfa427c8..e8444ef8be 100644--- a/mobile/lib/modules/asset_viewer/ui/top_control_app_bar.dart+++ b/mobile/lib/modules/asset_viewer/ui/top_control_app_bar.dart@@ -39,7 +39,9 @@ class TopControlAppBar extends HookConsumerWidget {const double iconSize = 22.0;final a = ref.watch(assetWatcher(asset)).value ?? asset;final album = ref.watch(currentAlbumProvider);- final comments = album != null+ final comments = album != null &&+ album.remoteId != null &&+ asset.remoteId != null? ref.watch(activityStatisticsProvider(album.remoteId!, asset.remoteId)): 0;