Skip to content

Commit

Permalink
Backmerge: #6240 – Export to 3-letter sequence doesn't work (#6248)
Browse files Browse the repository at this point in the history
  • Loading branch information
svvald authored Jan 9, 2025
1 parent 5ff864a commit c00a6ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import {
import styled from '@emotion/styled';
import { useAppDispatch } from 'hooks';
import { openErrorModal } from 'state/modal';

// TODO: Make it type safe by using `SupportedFormats` as id
const options: Array<Option> = [
{ id: 'ket', label: 'Ket' },
{ id: 'mol', label: 'MDL Molfile V3000' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type SupportedFormats =
| 'ket'
| 'fasta'
| 'sequence'
| 'sequence-3-letter'
| 'idt'
| 'helm'
| 'svg';
Expand Down Expand Up @@ -61,6 +62,13 @@ const formatProperties: FormatProperties = {
false,
{},
),
'sequence-3-letter': new SupportedFormatProperties(
'SEQUENCE (3-letter code)',
ChemicalMimeType.Sequence,
['.seq'],
false,
{},
),
idt: new SupportedFormatProperties(
'IDT',
ChemicalMimeType.Idt,
Expand Down

0 comments on commit c00a6ef

Please sign in to comment.