Skip to content

Commit

Permalink
fix: remove unused property causing build breaks
Browse files Browse the repository at this point in the history
The `pastEventLink` property was resulting undefined in some cases causing the build to fail when attempting to serialize. This value is not being consumed by the frontend; removed.
  • Loading branch information
wackerow committed Jan 25, 2024
1 parent 6b65e5d commit f85b2dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/lib/api/calendarEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export async function fetchCommunityEvents(): Promise<CommunityEventsReturnType>
date: event.start.dateTime,
title: event.summary,
calendarLink: event.htmlLink,
pastEventLink: event.location,
}
})
const upcomingEventData = futureEventsReqData
Expand All @@ -41,7 +40,6 @@ export async function fetchCommunityEvents(): Promise<CommunityEventsReturnType>
date: event.start.dateTime,
title: event.summary,
calendarLink: event.htmlLink,
pastEventLink: event.location,
}
})

Expand Down
1 change: 0 additions & 1 deletion src/lib/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ export interface CommunityEvent {
date: string
title: string
calendarLink: string
pastEventLink?: string
}

export interface ReqCommunityEvent {
Expand Down

0 comments on commit f85b2dc

Please sign in to comment.