refactor: handle meta passport

This commit is contained in:
Thanaphon Frappet 2024-11-11 15:42:48 +07:00
parent bb4164779e
commit 7397a80894
2 changed files with 0 additions and 12 deletions

View file

@ -367,12 +367,6 @@ defineEmits<{
$emit('submit', obj[currentIndex].group, allMeta);
if (autoSave === true) {
if (obj[currentIndex].group === 'passport') {
delete obj[currentIndex]._meta?.firstName;
delete obj[currentIndex]._meta?.lastName;
delete obj[currentIndex]._meta?.gender;
}
const statusSave = await save?.(
obj[currentIndex].group,
obj[currentIndex]._meta,