헤더 변경사항 수정
This commit is contained in:
@@ -13,19 +13,6 @@ export default function HeadChModal({ headList, type }: { headList: z.infer<type
|
||||
|
||||
let items = headList.map(item => ({ id: item.id, title: item.title, val: item.visible }));
|
||||
|
||||
|
||||
/*const form = useForm<z.infer<typeof sttnHeadListType>>({
|
||||
resolver: zodResolver(sttnHeadListType),
|
||||
defaultValues: [],
|
||||
})
|
||||
|
||||
|
||||
useEffect(() =>{
|
||||
form.reset(headList)
|
||||
|
||||
|
||||
},[headList])*/
|
||||
|
||||
const form = useForm<z.infer<typeof sttnHeadListType>>({
|
||||
resolver: zodResolver(sttnHeadListType),
|
||||
defaultValues: headList,
|
||||
|
||||
Reference in New Issue
Block a user