Skip to content

Commit

Permalink
Initialize outputFormats to the empty list
Browse files Browse the repository at this point in the history
outputFormats is derived from sequencing language adaptation, but
starts out as undefined. This commit protects any code that assumes
it's always a list.
  • Loading branch information
mattdailis committed Nov 15, 2024
1 parent b99e922 commit a6b6194
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 @@ -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();
Expand Down

0 comments on commit a6b6194

Please sign in to comment.