diff --git a/apps/studio/data/projects/projects-query.ts b/apps/studio/data/projects/projects-query.ts index cadb50173a3..a4f2b1c2231 100644 --- a/apps/studio/data/projects/projects-query.ts +++ b/apps/studio/data/projects/projects-query.ts @@ -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,