From 873e48c509bef839e6fa484207db3f45eb823614 Mon Sep 17 00:00:00 2001 From: Jordi Enric Date: Tue, 2 Sep 2025 11:51:19 +0200 Subject: [PATCH] filter out undefined data --- apps/studio/data/projects/projects-query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,