|
|
@@ -165,7 +165,7 @@ const EditStaff: React.FC = async () => { |
|
|
|
label: t(`Team`), |
|
|
|
type: "combo-Obj", |
|
|
|
options: teamCombo, |
|
|
|
value: data[key].id ?? "", |
|
|
|
value: data[key]?.id ?? "", |
|
|
|
}; |
|
|
|
case "department": |
|
|
|
return { |
|
|
@@ -277,7 +277,7 @@ const EditStaff: React.FC = async () => { |
|
|
|
case "emergContactPhone": |
|
|
|
return { |
|
|
|
id: `${key}`, |
|
|
|
label: t(`Emergency Contact Phonee`), |
|
|
|
label: t(`Emergency Contact Phone`), |
|
|
|
type: "text", |
|
|
|
// pattern: "^\\d{8}$", |
|
|
|
message: t("input correct phone no."), |
|
|
|