removen unnecessary code

This commit is contained in:
kaarleol
2024-11-15 14:40:29 +01:00
committed by Aaro Koivukangas
parent fb25b856ff
commit fe8eecd2f2
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ export const validateReference = (
exact_date: {
name: 'exact_date',
required: true,
regexCheck: dateCheck,
asString: dateCheck,
condition: (data: Partial<EditDataType<ReferenceDetailsType>>) => {
const ids: number[] = [6, 7, 10, 11, 12, 13, 14]
return data.ref_type_id != null && ids.includes(data.ref_type_id)
-1
View File
@@ -10,7 +10,6 @@ type Validator = {
asString?: ((str: string) => ValidationError) | boolean
miscCheck?: (obj: object) => ValidationError
miscArray?: (data: object[]) => ValidationError
regexCheck?: (str: string) => ValidationError
condition?: (data: object) => boolean // Validator is run if condition returns true, example in ./reference
useEditData?: boolean
}