status profile
This commit is contained in:
parent
7adf787d49
commit
9b134ff716
1 changed files with 3 additions and 1 deletions
|
|
@ -833,9 +833,11 @@ const fetchData = async () => {
|
|||
const reason = reasonOptions.value.filter(
|
||||
(r: DataOption) => r.id == data.leaveReason
|
||||
);
|
||||
console.log(reason);
|
||||
|
||||
if (reason.length > 0) {
|
||||
leaveReason.value = ` (พ้นจากราชการด้วยสาเหตุ: ${reason[0].name})`;
|
||||
} else {
|
||||
} else if (data.leaveReason !== null && data.leaveReason !== "") {
|
||||
leaveReason.value = ` (พ้นจากราชการด้วยสาเหตุ: ${data.leaveReason})`;
|
||||
}
|
||||
reasonStatus.value = reason.length > 0 ? true : false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue