Преглед изворни кода

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 месец
родитељ
комит
d55286163a
1 измењених фајлова са 1 додато и 1 уклоњено
  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