Skip to content

Commit 8adbe94

Browse files
committed
fix: related to undefined asset
1 parent 42bb51f commit 8adbe94

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

personal/src/components/CVList.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const pastEntries = allCvEntries
2121
<div class="cv-item">
2222
<img
2323
src={`https://directus.aaronczichon.de/assets/${entry.data.image.assetId}?w=150`}
24-
alt="Logo"
24+
alt={entry.data.image.alt}
2525
/>
2626
</div>
2727
<article class="cv-item">

personal/src/content/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const cvCollection = defineCollection({
3434
assetId: z.string(),
3535
alt: z.string(),
3636
})
37-
.optional()
3837
}),
3938
});
4039
// 3. Export a single `collections` object to register your collection(s)

0 commit comments

Comments
 (0)