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 folder analytics filtering

Steven Tey26c245d5c853
diff --git a/apps/web/lib/analytics/get-analytics.ts b/apps/web/lib/analytics/get-analytics.ts
index f4605acd0f..62afd1b197 100644
--- a/apps/web/lib/analytics/get-analytics.ts
+++ b/apps/web/lib/analytics/get-analytics.ts
@@ -98,7 +98,7 @@ export const getAnalytics = async (params: AnalyticsFilters) => {
eventType: event,
workspaceId,
tagIds,
- folderId: folderId || workspaceId ? "" : undefined,
+ folderId: folderId || (workspaceId ? "" : undefined),
qr,
start: startDate.toISOString().replace("T", " ").replace("Z", ""),
end: endDate.toISOString().replace("T", " ").replace("Z", ""),