Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Fix person issue

laurenspriema913e2c6e776
diff --git a/mobile/lib/models/ml/face/person.dart b/mobile/lib/models/ml/face/person.dart
index dc7eb5177b..ffb4a276eb 100644
--- a/mobile/lib/models/ml/face/person.dart
+++ b/mobile/lib/models/ml/face/person.dart
@@ -128,7 +128,9 @@ class PersonData {
// fromJson
factory PersonData.fromJson(Map<String, dynamic> json) {
- final assigned = (json['assigned'] == null || json['assigned'].length == 0 || json['assigned'] != Iterable)
+ final assigned = (json['assigned'] == null ||
+ json['assigned'].length == 0 ||
+ json['assigned'] is! Iterable)
? <ClusterInfo>[]
: List<ClusterInfo>.from(
json['assigned']