Skip to content

Commit

Permalink
Replace string output for customized sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermak authored and mattdailis committed Oct 21, 2024
1 parent 063b04f commit 1b4a1b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/sequencing/SequenceEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@
const sequence = viewUpdate.state.doc.toString();
disableCopyAndExport = sequence === '';
const tree = syntaxTree(viewUpdate.state);
const output = await selectedOutputFormat?.toOutputFormat?.(tree, sequence, commandDictionary, sequenceName);
let output = await selectedOutputFormat?.toOutputFormat?.(tree, sequence, commandDictionary, sequenceName);
if ($sequenceAdaptation?.modifyOutput !== undefined && output !== undefined) {
$sequenceAdaptation?.modifyOutput(output, parameterDictionaries, channelDictionary);
output = $sequenceAdaptation?.modifyOutput(output, parameterDictionaries, channelDictionary);
}
editorOutputView.dispatch({ changes: { from: 0, insert: output, to: editorOutputView.state.doc.length } });
Expand Down

0 comments on commit 1b4a1b4

Please sign in to comment.