Skip to content

Commit

Permalink
Merge pull request #23 from gunsow911/feature/22
Browse files Browse the repository at this point in the history
🩹 Add fallback image if event image not found
  • Loading branch information
nisshi-dev authored Nov 2, 2023
2 parents 64453c0 + 97cdf20 commit 7908b05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added public/noimage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/events/EventsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const EventsList = async () => {
? event.cover.file
? event.cover.file.url
: event.cover.external.url
: ''
: '/noimage.png'
const connpassUrl = event.properties.connpass
? event.properties.connpass.url
: ''
Expand Down

0 comments on commit 7908b05

Please sign in to comment.