filter out undefined data

This commit is contained in:
Jordi Enric committed 2025-09-02 11:51:19 +02:00
1 parent dda4b4be48
commit 873e48c509
1 file changed
+1 -1
+1 -1
View File
@@ -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,