From a04c18d13b2a9987144ad5b1983a7452670a8439 Mon Sep 17 00:00:00 2001 From: "MSI\\derek" Date: Thu, 25 Apr 2024 20:02:10 +0800 Subject: [PATCH] update --- src/components/EditStaff/EditStaff.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)} */} );