Skip to content

Commit f441883

Browse files
Fix bug in ID assignment
1 parent efdbf51 commit f441883

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/apollo-shared/src/GFF3/annotationFeatureToGFF3.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export function annotationFeatureToGFF3(
2929
}
3030
if (attributes.gff_id) {
3131
delete attributes.gff_id
32-
} else if (feature.children) {
32+
}
33+
if (feature.children && !attributes.ID) {
3334
attributes.ID = [feature._id]
3435
}
3536
if (attributes.gff_name) {

0 commit comments

Comments
 (0)