Skip to content

armgit / ente

Public Imported from GitHub
0

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

Mounted check

laurenspriem6a8cfe31defa
diff --git a/mobile/lib/ui/viewer/people/person_gallery_suggestion.dart b/mobile/lib/ui/viewer/people/person_gallery_suggestion.dart
index 19e4b24505..395e36c627 100644
--- a/mobile/lib/ui/viewer/people/person_gallery_suggestion.dart
+++ b/mobile/lib/ui/viewer/people/person_gallery_suggestion.dart
@@ -113,11 +113,13 @@ class _PersonGallerySuggestionState extends State<PersonGallerySuggestion>
allSuggestions[0].clusterIDToMerge,
);
- setState(() {
- faceCrops = crops;
- isLoading = false;
- hasCurrentSuggestion = true;
- });
+ if (mounted) {
+ setState(() {
+ faceCrops = crops;
+ isLoading = false;
+ hasCurrentSuggestion = true;
+ });
+ }
unawaited(_fadeController.forward());
unawaited(_slideController.forward());