From 637176618b0eb4ce6bd1f71a5f456a80a64bab24 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 28 Jun 2024 18:22:02 +0700 Subject: [PATCH] fixing --- .../components/detail/PersonalInformation/05_Education.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue index 6b15106f0..4f1ed41d5 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue @@ -566,8 +566,9 @@ function editForm(row: any) { educationData.duration = row.duration; educationData.durationYear = row.durationYear; educationData.note = row.note; - educationData.startYear = +row.startDate.slice(0, 4); - educationData.endYear = +row.endDate.slice(0, 4); + educationData.startYear = + row.isDate == "true" ? row.startDate.slice(0, 4) : ""; + educationData.endYear = row.isDate == "true" ? row.endDate.slice(0, 4) : ""; dialog.value = true; }