Skip to content

Commit 7271f6d

Browse files
authored
fix: update key in MorphFeature.fromJson function (#1925)
1 parent 97b8d61 commit 7271f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pangea/morphs/morph_models.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MorphFeature {
1111
factory MorphFeature.fromJson(Map<String, dynamic> json) {
1212
return MorphFeature(
1313
feature: json['feature'],
14-
tags: List<String>.from(json['tag']),
14+
tags: List<String>.from(json['tag'] ?? json['tags']),
1515
);
1616
}
1717

0 commit comments

Comments
 (0)