Skip to content

Commit

Permalink
fixed problem with non-unique React key when a strand has a 5' and a …
Browse files Browse the repository at this point in the history
…3' extension adjacent to the same domain
  • Loading branch information
dave-doty committed Dec 22, 2023
1 parent da99847 commit c9c2894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/view/design_main_dna_sequence.dart
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class DesignMainDNASequenceComponent extends UiComponent2<DesignMainDNASequenceP
..startOffset = start_offset
..style = style_map);
return (Dom.text()
..key = 'extension-dna-'
..key = 'extension-dna-${ext.is_5p ? "5'" : "3'"}'
'H${ext.adjacent_domain.helix},${ext.adjacent_domain.start}-${ext.adjacent_domain.end}'
..dy = dy)(text_path_props(subseq));
}
Expand Down

0 comments on commit c9c2894

Please sign in to comment.