Skip to content

Commit

Permalink
Removed a lint problem
Browse files Browse the repository at this point in the history
  • Loading branch information
cohansen committed Sep 10, 2024
1 parent 116d816 commit a324860
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/sequencing/SequenceEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@
),
),
),
indentService.of($sequenceAdaptation.autoIndent()),
compartmentSeqLinter.reconfigure(
inputLinter(parsedChannelDictionary, parsedCommandDictionary, nonNullParsedParameterDictionaries),
),
Expand Down Expand Up @@ -278,14 +277,14 @@
const fileExtension = `${sequenceName}.${selectedOutputFormat?.fileExtension}`;
if (outputFormat?.fileExtension === 'json') {
downloadJSON(editorOutputView.state.doc.toJSON(), fileExtension);
downloadJSON(JSON.parse(editorOutputView.state.doc.toString()), fileExtension);
} else {
downloadBlob(new Blob([editorOutputView.state.doc.toString()], { type: 'text/plain' }), fileExtension);
}
}
function downloadInputFormat() {
downloadBlob(new Blob([editorOutputView.state.doc.toString()], { type: 'text/plain' }), `${sequenceName}.txt`);
downloadBlob(new Blob([editorSequenceView.state.doc.toString()], { type: 'text/plain' }), `${sequenceName}.txt`);
}
async function copyOutputFormatToClipboard() {
Expand Down

0 comments on commit a324860

Please sign in to comment.