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.

handle tags undefined

Steven Tey95c3266178ce
diff --git a/apps/web/app/api/cron/import/short/utils.ts b/apps/web/app/api/cron/import/short/utils.ts
index 3695493a6a..0e70ba05bb 100644
--- a/apps/web/app/api/cron/import/short/utils.ts
+++ b/apps/web/app/api/cron/import/short/utils.ts
@@ -59,7 +59,9 @@ export const importLinksFromShort = async ({
if (path.length === 0) {
return null;
}
- tags.forEach((tag: string) => tagsToCreate.add(tag));
+ if (tags) {
+ tags.forEach((tag: string) => tagsToCreate.add(tag));
+ }
return {
projectId,
userId,