empty list error

This commit is contained in:
laurenspriem
2025-08-04 14:19:04 +05:30
parent 0854fc3493
commit 8304bca71c

View File

@@ -101,7 +101,9 @@ class _PersonGallerySuggestionState extends State<PersonGallerySuggestion>
} else {
suggestions = await ClusterFeedbackService.instance
.getAllLargePersonSuggestions();
person = suggestions.first.person;
if (suggestions.isNotEmpty) {
person = suggestions.first.person;
}
}
if (suggestions.isNotEmpty && mounted) {