Skip to content

Commit 0c165c3

Browse files
committed
fix fetch workshops
1 parent df2a768 commit 0c165c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/fetch-workshops.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ const fetchData = async (client, vars) => {
129129

130130
const confStartDate = dayjs(isoStartDate);
131131

132-
const mergedWorkshops = mergeWorkshops(data.workshops, emsWorkshops);
132+
const mergedWorkshops = mergeWorkshops(
133+
data.workshops || [],
134+
emsWorkshops || [],
135+
);
133136
const workshops = mergedWorkshops
134137
.map(({ speaker, trainers, ...ws }) => ({
135138
speaker: speaker || {

0 commit comments

Comments
 (0)