From 51793fc24a7fea44b5438b5f02b2475b5b9b5a85 Mon Sep 17 00:00:00 2001 From: Adrian Fennert Date: Fri, 13 Feb 2026 11:31:51 +0100 Subject: [PATCH] fix: fix data mapping for project - rearrange structure in mapping --- src/lib/mapping/strapiMapping.svelte.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/mapping/strapiMapping.svelte.ts b/src/lib/mapping/strapiMapping.svelte.ts index 7059453..ad124ed 100644 --- a/src/lib/mapping/strapiMapping.svelte.ts +++ b/src/lib/mapping/strapiMapping.svelte.ts @@ -70,15 +70,16 @@ const mapProfileData = (data: StrapiProfileComponent): Profile => { return { name: data.profile.name, title: data.profile.title, - anchorId: data.profile.anchor_id, text: data.profile.description, - imageUrl: publicEnv.PUBLIC_STRAPI_URL + data.profile.image.formats.small.url + imageUrl: publicEnv.PUBLIC_STRAPI_URL + data.profile.image.formats.small.url, + anchorId: data.profile.anchor_id }; }; const mapProjectData = (data: StrapiProjectComponent): Projects => { return { title: data.project.title, + subtitle: data.project.subtitle, anchorId: data.project.anchor_id, entries: data.project.entries.map((entry) => ({ title: entry.front_title, @@ -93,9 +94,9 @@ const mapProjectData = (data: StrapiProjectComponent): Projects => { const mapSkillData = (data: StrapiSkillComponent): Skills => { return { - anchorId: data.skill.anchor_id, - subtitle: data.skill.subtitle, title: data.skill.title, + subtitle: data.skill.subtitle, + anchorId: data.skill.anchor_id, entries: data.skill.entries.map((entry) => ({ title: entry.title, icon: entry.icon,