Skip to content

Commit

Permalink
#4723 - When pressing Enter, a user can create new sequences in the “…
Browse files Browse the repository at this point in the history
…Modify RNA Builder” mode (#6178)

* 4723-when-pressing-enter-a-user-can-create-new-sequences-in-the-modify-rna-builder-mode

* clean code

---------

Co-authored-by: Andrey Menshikov <andrey.menshikov@bostongene.com>
  • Loading branch information
Drimodaren and Andrey Menshikov authored Dec 20, 2024
1 parent e1275a1 commit aa7b97e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ export class SequenceMode extends BaseMode {
}

public startNewSequence(eventData?: StartNewSequenceEventData) {
if (CoreEditor.provideEditorInstance()?.isSequenceEditInRNABuilderMode) {
return;
}
const currentChainIndex = this.isEditMode
? SequenceRenderer.currentChainIndex
: SequenceRenderer.chainsCollection.chains.length - 1;
Expand Down

0 comments on commit aa7b97e

Please sign in to comment.