fix: handle profile image confirm (employee)

This commit is contained in:
puriphatt 2024-06-13 04:16:40 +00:00
parent d25fa4d792
commit 3f99cf60bf

View file

@ -868,7 +868,9 @@ async function assignFormDataEmployee(id: string) {
formDataEmployeeTab.value = 'personalInfo';
currentEmployee.value = foundEmployee;
profileUrl.value = foundEmployee.profileImageUrl;
profileSubmit.value = true;
foundEmployee.profileImageUrl
? (profileSubmit.value = true)
: (profileSubmit.value = false);
isEmployeeEdit.value = true;
formDataEmployee.value = {