Przeglądaj źródła

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 miesiąc temu
rodzic
commit
d55286163a
1 zmienionych plików z 1 dodań i 1 usunięć
  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