diff --git a/src/components/EditStaff/EditStaff.tsx b/src/components/EditStaff/EditStaff.tsx index 5a75dc3..82966e7 100644 --- a/src/components/EditStaff/EditStaff.tsx +++ b/src/components/EditStaff/EditStaff.tsx @@ -122,9 +122,10 @@ const EditStaff: React.FC = async () => { }, [searchParams]); useEffect(() => { - let id = 0; + // let id = 0; if (idString) { - id = parseInt(idString); + const id = parseInt(idString); + console.log(id) setId(id); } fetchStaffEdit(id).then((staff) => { @@ -334,7 +335,6 @@ const EditStaff: React.FC = async () => { return ( <> - {/* {console.log(fieldLists)} */} );