refactor: handle value is null
This commit is contained in:
parent
11144fd592
commit
4ff7f50811
1 changed files with 6 additions and 0 deletions
|
|
@ -1177,6 +1177,9 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
|||
(currentFromDataEmployee.value.employeeVisa?.length || 0) - 1;
|
||||
|
||||
if (
|
||||
currentFromDataEmployee.value.employeePassport?.[
|
||||
state.value.currentIndexPassport
|
||||
] &&
|
||||
currentFromDataEmployee.value.employeePassport?.[
|
||||
state.value.currentIndexPassport
|
||||
].id !== undefined
|
||||
|
|
@ -1185,6 +1188,9 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
|||
}
|
||||
|
||||
if (
|
||||
currentFromDataEmployee.value.employeeVisa?.[
|
||||
state.value.currentIndexVisa
|
||||
] &&
|
||||
currentFromDataEmployee.value.employeeVisa?.[
|
||||
state.value.currentIndexVisa
|
||||
].id !== undefined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue