PostHog / posthog.com

Official docs, website, and handbook for PostHog.
https://posthog.com
Other
422 stars 433 forks source link

Fallback image for team members #7023

Open corywatilo opened 1 year ago

corywatilo commented 1 year ago

When a team member doesn't have a photo in their bio, it causes builds to fail.

error Building static HTML failed for path "/team"
--
12:01:09.572 |  
12:01:09.572 | 14 \| export const TeamMember = (teamMember) => {
12:01:09.573 | 15 \|     const {
12:01:09.573 | > 16 \|         avatar: { url: avatar },
12:01:09.573 | \|                        ^
12:01:09.573 | 17 \|         lastName,
12:01:09.574 | 18 \|         firstName,
12:01:09.574 | 19 \|         companyRole,
12:01:09.574 |  
12:01:09.574 |  
12:01:09.574 | WebpackError: TypeError: Cannot read properties of null (reading 'url')

We should have a fallback image for team members with no photo - we can use Max's profile photo for now.

corywatilo commented 10 months ago

@smallbrownbike Can't remember if we fixed this or not?