Skip to content

Commit bdea039

Browse files
committed
Merge branch 'develop' into upgrading-dependencies
2 parents 8b1773c + 542f039 commit bdea039

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "seqviz",
33
"description": "A viewer for DNA, RNA, and protein sequences that supports many input formats",
4-
"version": "3.10.10",
4+
"version": "3.10.11",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"unpkg": "dist/seqviz.min.js",

src/Linear/Translations.tsx

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,10 @@ const TranslationRow = (props: {
100100
}) => (
101101
<>
102102
{props.translations.map((t, i) => (
103-
<>
104-
<SingleNamedElementAminoacids
105-
{...props}
106-
key={`translation-linear-${t.id}-${i}-${props.firstBase}-${props.lastBase}`}
107-
translation={t}
108-
/>
109-
{t.name && (
110-
<SingleNamedElementHandle
111-
{...props}
112-
key={`translation-handle-linear-${t.id}-${i}-${props.firstBase}-${props.lastBase}`}
113-
element={t}
114-
elements={props.translations}
115-
index={i}
116-
/>
117-
)}
118-
</>
103+
<React.Fragment key={`translation-linear-${t.id}-${i}-${props.firstBase}-${props.lastBase}`}>
104+
<SingleNamedElementAminoacids {...props} translation={t} />
105+
{t.name && <SingleNamedElementHandle {...props} element={t} elements={props.translations} index={i} />}
106+
</React.Fragment>
119107
))}
120108
</>
121109
);

0 commit comments

Comments
 (0)