From a6b61941f734eedb22920028d0d6906d9cdb2476 Mon Sep 17 00:00:00 2001 From: Matthew Dailis Date: Fri, 15 Nov 2024 13:45:22 -0800 Subject: [PATCH] Initialize outputFormats to the empty list outputFormats is derived from sequencing language adaptation, but starts out as undefined. This commit protects any code that assumes it's always a list. --- src/components/sequencing/SequenceEditor.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/sequencing/SequenceEditor.svelte b/src/components/sequencing/SequenceEditor.svelte index 33c1d6756d..851ce48e74 100644 --- a/src/components/sequencing/SequenceEditor.svelte +++ b/src/components/sequencing/SequenceEditor.svelte @@ -100,7 +100,7 @@ let editorSequenceDiv: HTMLDivElement; let editorSequenceView: EditorView; let menu: Menu; - let outputFormats: IOutputFormat[]; + let outputFormats: IOutputFormat[] = []; let selectedNode: SyntaxNode | null; let currentTree: Tree; let commandInfoMapper: CommandInfoMapper = new SeqNCommandInfoMapper();