Skip to content

Commit

Permalink
Backmerge: #5301 – New preset creation process interferes with monome…
Browse files Browse the repository at this point in the history
…r replacement on the sequence mode (#5304) (#5328)
  • Loading branch information
svvald authored and Guch1g0v committed Oct 17, 2024
1 parent f364024 commit a75234c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ export const RnaEditorExpanded = ({
}
dispatch(savePreset(newPreset));
dispatch(setActivePreset(newPreset));
editor.events.selectPreset.dispatch(newPreset);
if (!isSequenceMode) {
editor.events.selectPreset.dispatch(newPreset);
}
setTimeout(() => {
scrollToSelectedPreset(newPreset.name);
}, 0);
Expand Down

0 comments on commit a75234c

Please sign in to comment.