fix: resolve build errors by removing unused variables after UI refactor
This commit is contained in:
parent
3f0963d3e8
commit
b6102d0b31
@ -66,7 +66,6 @@ export const NewDepartmentModal = ({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const statusValue = watch("is_active");
|
|
||||||
const parentIdValue = watch("parent_id");
|
const parentIdValue = watch("parent_id");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@ -48,8 +48,6 @@ export const NewDesignationModal = ({
|
|||||||
const {
|
const {
|
||||||
register,
|
register,
|
||||||
handleSubmit,
|
handleSubmit,
|
||||||
setValue,
|
|
||||||
watch,
|
|
||||||
reset,
|
reset,
|
||||||
clearErrors,
|
clearErrors,
|
||||||
formState: { errors },
|
formState: { errors },
|
||||||
@ -62,8 +60,6 @@ export const NewDesignationModal = ({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const statusValue = watch("is_active");
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isOpen) {
|
if (!isOpen) {
|
||||||
reset();
|
reset();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user