From e799a70938f1f0a9002568da43f6e8fa3373f80e Mon Sep 17 00:00:00 2001 From: "MSI\\2Fi" Date: Thu, 16 May 2024 12:10:16 +0800 Subject: [PATCH] using salaryPoint as id --- src/components/EditStaff/EditStaff.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/EditStaff/EditStaff.tsx b/src/components/EditStaff/EditStaff.tsx index 4c032cc..0aa3428 100644 --- a/src/components/EditStaff/EditStaff.tsx +++ b/src/components/EditStaff/EditStaff.tsx @@ -216,12 +216,13 @@ const EditStaff: React.FC = async () => { required: true, }; case "salary": + // console.log("salary", data[key]) return { id: `salaryId`, label: t(`Salary Point`), type: "combo-Obj", options: salaryCombo, - value: data[key]?.id ?? "", + value: data[key]?.salaryPoint ?? "", required: true, }; // case "hourlyRate":