mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
Handle empty image list
This commit is contained in:
parent
a33c43229e
commit
2baf00335e
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ export default async function handler(req, res) {
|
|||
codeLink: p.fields['Code Link'] || '',
|
||||
slackLink: p.fields['Slack Link'] || '',
|
||||
playLink: p.fields['Play Link'] || '',
|
||||
images: p.fields['Screenshot'].map(i => i.url) || [],
|
||||
images: (p.fields['Screenshot'] || []).map(i => i.url),
|
||||
githubProf: p.fields['Github Profile'] || ''
|
||||
}))
|
||||
return res.status(200).json({ projects: results })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue