Skip to content

Commit

Permalink
Make sure output is string or undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdailis committed Oct 22, 2024
1 parent 1b4a1b4 commit 87baa3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/sequencing/SequenceEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
let output = await selectedOutputFormat?.toOutputFormat?.(tree, sequence, commandDictionary, sequenceName);
if ($sequenceAdaptation?.modifyOutput !== undefined && output !== undefined) {
output = $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 87baa3a

Please sign in to comment.