Skip to content

Commit

Permalink
fix(beacon): better fallback for contig input
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Nov 21, 2024
1 parent d312a29 commit 54063d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/Beacon/BeaconCommon/VariantsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const VariantsForm = ({ beaconAssemblyIds }: VariantsFormProps) => {
<VariantInput
field={formFields.referenceName}
disabled={variantsError || !currentAssemblyID}
mode={currentAssemblyID ? { type: 'select', options: availableContigs } : { type: 'input' }}
mode={availableContigs.length ? { type: 'select', options: availableContigs } : { type: 'input' }}
/>
</Col>
<Col span={8}>
Expand Down

0 comments on commit 54063d3

Please sign in to comment.