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 get-folder-ids-to-filter.ts

Steven Tey47e0d70e33e5
diff --git a/apps/web/lib/analytics/get-folder-ids-to-filter.ts b/apps/web/lib/analytics/get-folder-ids-to-filter.ts
index ade0783176..d3dc6411bc 100644
--- a/apps/web/lib/analytics/get-folder-ids-to-filter.ts
+++ b/apps/web/lib/analytics/get-folder-ids-to-filter.ts
@@ -12,7 +12,7 @@ export const getFolderIdsToFilter = async ({
folderIdToVerify?: string;
}) => {
if (workspace.foldersUsage === 0) {
- return [];
+ return undefined;
}
// If the request is not for a specific folder, find folders the user has access to + unsorted folder
let folderIds: string[] | undefined = undefined;