Skip to content

Commit

Permalink
Phoenix bugfix for undefined outputFormat (#1556)
Browse files Browse the repository at this point in the history
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.

Co-authored-by: Matthew Dailis <[email protected]>
  • Loading branch information
cartermak and mattdailis authored Nov 15, 2024
1 parent b99e922 commit 563c9fc
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 563c9fc

Please sign in to comment.