Pārlūkot izejas kodu

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek pirms 1 gada
vecāks
revīzija
e90a41278c
2 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +2
    -0
      src/app/api/staff/actions.ts
  2. +1
    -0
      src/components/CreateStaffForm/CreateStaffForm.tsx

+ 2
- 0
src/app/api/staff/actions.ts Parādīt failu

@@ -32,6 +32,8 @@ export interface CreateStaffInputs {
departDate?: string | null;
departReason?: string | null;
remark?: string | null;
staffId: string | null;
skillSetId?: number[] | number | null | undefined
}
export interface records {


+ 1
- 0
src/components/CreateStaffForm/CreateStaffForm.tsx Parādīt failu

@@ -67,6 +67,7 @@ const CreateStaffForm: React.FC<formProps> = ({ Title, fieldLists }) => {
}
const postData = {
...data,
skillSetId: typeof data.skillSetId === "number" ? [data.skillSetId] : data.skillSetId,
emergContactPhone: data.emergContactPhone.toString(),
phone1: data.phone1.toString(),
phone2: data.phone2.toString(),


Notiek ielāde…
Atcelt
Saglabāt