Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update getFolderIdsToFilter condition

Pedro Ladeira8d48951c6498
diff --git a/apps/web/app/api/links/count/route.ts b/apps/web/app/api/links/count/route.ts
index 7443a45ff9..fdc2309e37 100644
--- a/apps/web/app/api/links/count/route.ts
+++ b/apps/web/app/api/links/count/route.ts
@@ -17,9 +17,8 @@ export const GET = withWorkspace(
});
if (
- (filters.groupBy === "tagId" ||
- filters.groupBy === "domain" ||
- filters.groupBy === "userId") &&
+ filters.groupBy &&
+ filters.groupBy !== "folderId" &&
!filters.folderId &&
!folderIds
) {