Skip to content

Commit

Permalink
fix: cancelled speakers
Browse files Browse the repository at this point in the history
  • Loading branch information
theClarkSell committed Jan 10, 2024
1 parent a89c434 commit da651ff
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/routes/(that conferences)/tx/[year]/speakers/+page.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
export async function load({ parent }) {
let { event } = await parent();

const { sessions } = event.sessions;

const speakers = sessions
.filter((s) => s.status === 'ACCEPTED')
.reduce((acc, cur) => {
console.log(cur);
acc.push(...cur.speakers);

return acc;
}, [])
.filter((s) => s.profileSlug !== 'thatconference');

return {
speakers: event.speakers,
speakers,
event
};
}

0 comments on commit da651ff

Please sign in to comment.