📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fix: Cannot read properties of undefined (reading 'total')
Blue Mouse0e5ea33f88a7
diff --git a/backend/apps/cloud/src/project/project.service.ts b/backend/apps/cloud/src/project/project.service.tsindex c26f246f8..1074d11c5 100644--- a/backend/apps/cloud/src/project/project.service.ts+++ b/backend/apps/cloud/src/project/project.service.ts@@ -1933,10 +1933,8 @@ export class ProjectService {})// eslint-disable-next-line no-await-in-loop- const [{ total: chunkTotal }] = await countResult.json<{- total: number- }>()- total += chunkTotal+ const countData = await countResult.json<{ total: number }>()+ total += countData[0]?.total || 0}// Apply pagination to combined results