Skip to content

Commit

Permalink
Merge pull request #276 from Lattice-Automation/bug/translation-handl…
Browse files Browse the repository at this point in the history
…e-on-aa-seq

Removing name of translation for aa seq so it doesnt show
  • Loading branch information
guzmanvig authored Oct 31, 2024
2 parents 73744da + 8188d03 commit d5eb132
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SeqViz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ export default class SeqViz extends React.Component<SeqVizProps, SeqVizState> {
// If the seqType is aa, make the entire sequence the "translation"
if (seqType === "aa") {
// TODO: during some grand future refactor, make this cleaner and more transparent to the user
translations = [{ direction: 1, end: seq.length, start: 0, name: "translation" }];
// Making the name empty so the translation handle doesn't show
translations = [{ direction: 1, end: seq.length, start: 0, name: "" }];
}

// Since all the props are optional, we need to parse them to defaults.
Expand Down

0 comments on commit d5eb132

Please sign in to comment.