This commit is contained in:
Warunee Tamkoo 2024-06-28 18:22:02 +07:00
parent 3d7c5ccc62
commit 637176618b

View file

@ -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;
}