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.

fix getLinksCount

Steven Tey11c8261fa530
diff --git a/apps/web/lib/api/links/get-links-count.ts b/apps/web/lib/api/links/get-links-count.ts
index 80861b6cdd..20521c5df0 100644
--- a/apps/web/lib/api/links/get-links-count.ts
+++ b/apps/web/lib/api/links/get-links-count.ts
@@ -49,10 +49,7 @@ export async function getLinksCount({
userId,
}),
// when filtering by folder, only filter by folder if the filter group is not "Folders"
- ...(folderId &&
- groupBy !== "folderId" && {
- folderId,
- }),
+ folderId: folderId && groupBy !== "folderId" ? folderId : null,
};
if (groupBy === "tagId") {