빌드 오류 수정
This commit is contained in:
@@ -14,7 +14,6 @@ interface AccessibleFormFieldProps<T extends FieldValues> {
|
||||
export function AccessibleFormField<T extends FieldValues>({
|
||||
label,
|
||||
required = false,
|
||||
error,
|
||||
inputComponent,
|
||||
}: AccessibleFormFieldProps<T>) {
|
||||
const labelText = required ? `${label} *` : label;
|
||||
|
||||
@@ -56,15 +56,15 @@ export function SdmInfoRegForm({
|
||||
}, [initializeCommonData]);
|
||||
|
||||
useEffect(() => {
|
||||
console.log("candidateTitle ", form.getValues("candidateTitle"));
|
||||
}, [form.getValues("candidateTitle")]);
|
||||
const candidateTitle = form.getValues("candidateTitle");
|
||||
}, [form.getValues]);
|
||||
useEffect(() => {
|
||||
if (useTypesData && useTypesData.length > 0) {
|
||||
setTimeout(() => {
|
||||
form.setValue("usePurpose", useTypesData[0]?.val?.toString() || "");
|
||||
}, 500);
|
||||
}
|
||||
}, [useTypesData, form]);
|
||||
}, [useTypesData, form.setValue]);
|
||||
|
||||
useEffect(() => {
|
||||
if (facilityName) {
|
||||
@@ -72,7 +72,7 @@ export function SdmInfoRegForm({
|
||||
form.setValue("sdmNm", facilityName);
|
||||
setKey((prev) => prev + 1);
|
||||
}
|
||||
}, [facilityName, form]);
|
||||
}, [facilityName, form.setValue]);
|
||||
|
||||
useEffect(() => {
|
||||
if (searchParams.get("dmdCoNm")) {
|
||||
@@ -80,7 +80,7 @@ export function SdmInfoRegForm({
|
||||
setSdmNmValue(searchParams.get("dmdCoNm") || "");
|
||||
setKey((prev) => prev + 1);
|
||||
}
|
||||
}, [searchParams, form]);
|
||||
}, [searchParams, form.setValue]);
|
||||
|
||||
const searchCandidate = (e: React.MouseEvent) => {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user