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: small improvement in empty top_links

flooorianflo8c343628d452
diff --git a/apps/web/app/api/analytics/[endpoint]/export/route.ts b/apps/web/app/api/analytics/[endpoint]/export/route.ts
index 4ac645202b..0386f0063e 100644
--- a/apps/web/app/api/analytics/[endpoint]/export/route.ts
+++ b/apps/web/app/api/analytics/[endpoint]/export/route.ts
@@ -117,7 +117,7 @@ export const GET = withAuth(
clicks: d.clicks,
}));
- if (!topLinks) {
+ if (!topLinks || topLinks.length === 0) {
return new Response(undefined, {
status: 204,
});