fix: body add-approver
All checks were successful
Build & Deploy on Dev / build (push) Successful in 3m9s

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-01-16 10:35:37 +07:00
parent 1dc9693348
commit 6ebe2c4d4d

View file

@ -153,8 +153,24 @@ function onSubmit() {
positionSign: items.positionSign ?? items.posExecutiveName,
profileId: items.id,
keycloakId: items.keycloakId,
positionLeaveName:
items.posType == "บริหาร" || items.posType == "อำนวยการ"
? items.posType + items.posLevel
: items.posLevel,
posExecutiveName: items.posExecutiveName,
organizationName: [
items.orgChild4,
items.orgChild3,
items.orgChild2,
items.orgChild1,
items.orgRoot,
]
.filter(Boolean)
.join(" "),
}));
console.log(body);
const hasCommander = selected.value.some((e) =>
props.commandersList?.some((i: any) => i === e.id)
);