mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 21:29:08 +03:00
filter out undefined data
This commit is contained in:
1 parent
dda4b4be48
commit
873e48c509
1 file changed
+1
-1
@@ -31,7 +31,7 @@ export async function getProjects({
|
||||
// { projects: ProjectInfo[] } is intentional to be forward compatible with the structure of v2 for easier migration.
|
||||
const isProjectsArray = Array.isArray(data)
|
||||
|
||||
if (!isProjectsArray) {
|
||||
if (!isProjectsArray && typeof data !== 'undefined') {
|
||||
Sentry.captureException(new Error('Projects response is not an array'), {
|
||||
extra: {
|
||||
data,
|
||||
|
||||
Reference in new issue
Block a user