Forráskód Böngészése

refactor(patient->register): update validation schema to ignore modality field

Modify registration information validation schema to exclude modality field
Remove all validation rules related to modality to prevent compilation errors
Ensure schema remains compatible with registration form after removal
sw 1 hónapja
szülő
commit
d55286163a
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/validation/patient/registerSchema.ts

+ 1 - 1
src/validation/patient/registerSchema.ts

@@ -9,7 +9,7 @@ import {
 import { RegisterInfo } from '@/API/patient/workActions';
 import { Rule } from 'antd/es/form';
 
-type IgnoredKeys = 'views' | 'study_type';
+type IgnoredKeys = 'views' | 'study_type' | 'modality'; // 这些字段不在表单中填写
 const registerInfoSchema: Record<
   keyof Omit<RegisterInfo, IgnoredKeys>,
   z.ZodTypeAny