From 4e157459fca12fbf9b63a4c8253a07a5a9978fea Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 16 May 2024 09:48:59 +0700 Subject: [PATCH] fix bug --- .../detail/PersonalInformation/02_NameChangeHistory.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) => {