diff --git a/src/modules/04_registry/components/Education.vue b/src/modules/04_registry/components/Education.vue index b5956d931..e3c38afce 100644 --- a/src/modules/04_registry/components/Education.vue +++ b/src/modules/04_registry/components/Education.vue @@ -1135,7 +1135,7 @@ const fetchData = async () => { durationYear: e.durationYear, other: e.other, fundName: e.fundName, - isDate: e.isDate.toString(), + isDate: e.isDate == null ? null : e.isDate.toString(), finishDate: new Date(e.finishDate), startDate: new Date(e.startDate).getFullYear(), endDate: new Date(e.endDate).getFullYear(), diff --git a/src/modules/04_registry/interface/request/Education.ts b/src/modules/04_registry/interface/request/Education.ts index d5da9164f..28624d8d2 100644 --- a/src/modules/04_registry/interface/request/Education.ts +++ b/src/modules/04_registry/interface/request/Education.ts @@ -19,7 +19,7 @@ interface RequestItemsObject { durationYear: number; other: string; fundName: string; - isDate: string; + isDate: string | null; finishDate: Date; startDate: number; endDate: number; diff --git a/src/modules/04_registry/interface/response/Education.ts b/src/modules/04_registry/interface/response/Education.ts index 832f48e51..86bda975c 100644 --- a/src/modules/04_registry/interface/response/Education.ts +++ b/src/modules/04_registry/interface/response/Education.ts @@ -14,7 +14,7 @@ interface ResponseObject { durationYear: number; other: string; fundName: string; - isDate: string; + isDate: string | null; finishDate: Date; startDate: number; endDate: number;