From c99736b775c2d2854aa864d92ef1739997ef31ea Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Dec 2025 23:24:48 +0000 Subject: [PATCH] Fix potential runtime errors with null/undefined date values Co-authored-by: ArthurDanjou <29738535+ArthurDanjou@users.noreply.github.com> --- app/pages/ecosystem.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pages/ecosystem.vue b/app/pages/ecosystem.vue index 580a10c..62fbb05 100644 --- a/app/pages/ecosystem.vue +++ b/app/pages/ecosystem.vue @@ -89,7 +89,7 @@ const educationNodes: Node[] = (education.value || []).map((item: EducationItem, data: { label: item.degree, subtitle: item.institution, - years: `${item.startDate?.substring(0, 4)}-${item.endDate?.substring(0, 4)}` + years: `${item.startDate?.substring(0, 4) || ''}-${item.endDate?.substring(0, 4) || ''}` }, style: { background: '#3b82f6', @@ -118,7 +118,7 @@ const experienceNodes: Node[] = (experiences.value || []).map((item: ExperienceI data: { label: item.title, subtitle: item.company, - years: `${item.startDate?.substring(0, 4)}-${item.endDate?.substring(0, 4)}` + years: `${item.startDate?.substring(0, 4) || ''}-${item.endDate?.substring(0, 4) || ''}` }, style: { background: '#10b981',