From 1b4a1b4cf9c73d32162cd08369972222ce16964f Mon Sep 17 00:00:00 2001 From: Carter Mak Date: Sun, 20 Oct 2024 14:02:32 -0700 Subject: [PATCH] Replace string output for customized sequence --- src/components/sequencing/SequenceEditor.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/sequencing/SequenceEditor.svelte b/src/components/sequencing/SequenceEditor.svelte index 065509d109..d20adcb948 100644 --- a/src/components/sequencing/SequenceEditor.svelte +++ b/src/components/sequencing/SequenceEditor.svelte @@ -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 } });