Skip to content

📈 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!

fixed issue with new accounts

Blue Mousef159f1372d15
diff --git a/src/project/project.service.ts b/src/project/project.service.ts
index 40a41fbc1..e31dcace1 100644
--- a/src/project/project.service.ts
+++ b/src/project/project.service.ts
@@ -158,6 +158,10 @@ export class ProjectService {
let pids
+ if (_isEmpty(pids)) {
+ return 0
+ }
+
if (isSelfhosted) {
const projects = await getProjectsClickhouse()
pids = _map(projects, ({ id }) => id)