empty list error
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user