Selaa lähdekoodia

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 kuukausi sitten
vanhempi
commit
d55286163a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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