Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
fix: vercel build 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Feb 29, 2024
1 parent 4aec6b7 commit d934b86
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions main/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ async function listConnections() {
})
const res = await nango.GET('/connection')

return res.data.configs?.map((c) => ({
id: c.id,
provider: c.provider,
connection_id: c.connection_id,
// CustomerId does not exist in nango...
}))
return (
res.data.configs?.map((c) => ({
id: c.id,
provider: c.provider,
connection_id: c.connection_id,
// CustomerId does not exist in nango...
})) || []
)
// }
// throw new Error('Neither Supaglue nor nango is initialized')
}
Expand Down

0 comments on commit d934b86

Please sign in to comment.