Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add missing mount check

Neeraj Guptab715bd882a03
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
index 03e2761dc9..946ec71e64 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
@@ -521,6 +521,9 @@ class GalleryState extends State<Gallery> {
/// To curate filters when a gallery is first opened.
if (!result.hasMore) {
+ if (!mounted) {
+ return result;
+ }
final searchFilterDataProvider =
InheritedSearchFilterData.maybeOf(context)
?.searchFilterDataProvider;