We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f551cf1 commit e7fdac8Copy full SHA for e7fdac8
src/lib/events.js
@@ -22,6 +22,9 @@ async function transformEvent(event) {
22
// Extract date from parsed data
23
const eventDate = parsed?.date?.date ? new Date(parsed.date.date) : null
24
25
+ // Extract only serializable data from parsed object
26
+ const featuredImage = parsed?.['featured-image']?.images?.[0] || null
27
+
28
return {
29
number: event.number,
30
title: event.title,
@@ -35,7 +38,9 @@ async function transformEvent(event) {
35
38
year: 'numeric'
36
39
})
37
40
: 'TBA',
- parsed // Include all parsed data for featured images, etc.
41
+ parsed: {
42
+ 'featured-image': featuredImage ? { images: [featuredImage] } : null
43
+ }
44
}
45
46
0 commit comments