From e0ccb08e0fdb15be829049eadc7c0e6c3d0c9e81 Mon Sep 17 00:00:00 2001 From: Gordon Krieger Date: Wed, 10 Jan 2024 14:36:29 -0500 Subject: [PATCH] beacon: remove form rules for assembly ID --- src/js/components/Beacon/VariantsForm.tsx | 2 +- src/js/types/beacon.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/components/Beacon/VariantsForm.tsx b/src/js/components/Beacon/VariantsForm.tsx index 66c9f7d7..8309bb47 100644 --- a/src/js/components/Beacon/VariantsForm.tsx +++ b/src/js/components/Beacon/VariantsForm.tsx @@ -59,7 +59,7 @@ const VariantsForm = ({ beaconAssemblyIds }: VariantsFormProps) => { placeholder: `A, C, G, T ${td('or')} N`, initialValue: '', }, - assemblyId: { name: 'Assembly ID', rules: [{}], placeholder: '', initialValue: '' }, + assemblyId: { name: 'Assembly ID', placeholder: '', initialValue: '' }, }; const variantsError = beaconAssemblyIds.includes('error'); diff --git a/src/js/types/beacon.ts b/src/js/types/beacon.ts index 833e6444..976ea11d 100644 --- a/src/js/types/beacon.ts +++ b/src/js/types/beacon.ts @@ -9,7 +9,7 @@ export type BeaconAssemblyIds = string[]; export interface FormField { name: string; - rules: Rule[]; + rules?: Rule[]; placeholder: string; initialValue: string; }