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
2 people authored and dandelany committed Nov 19, 2024
1 parent e9372ea commit f2c6c14
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 @@ -84,7 +84,7 @@
let editorSequenceDiv: HTMLDivElement;
let editorSequenceView: EditorView;
let menu: Menu;
let outputFormats: IOutputFormat[];
let outputFormats: IOutputFormat[] = [];
let selectedNode: SyntaxNode | null;
let selectedOutputFormat: IOutputFormat | undefined;
let toggleSeqJsonPreview: boolean = false;
Expand Down

0 comments on commit f2c6c14

Please sign in to comment.