diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue index 410797c36..3b39eeaa8 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue @@ -374,7 +374,7 @@ async function addData() { subId.value = res.data.result; fetchData(profileId.value); - props.fetchDataPersonal(); + props?.fetchDataPersonal?.(); success($q, "บันทึกข้อมูลสำเร็จ"); }) .catch((err) => { @@ -396,7 +396,7 @@ function editData(idData: string) { ) .then(() => { fetchData(profileId.value); - props.fetchDataPersonal(); + props.fetchDataPersonal?.(); success($q, "บันทึกข้อมูลสำเร็จ"); }) .catch((err) => {