Skip to content

Commit 5e110fe

Browse files
committed
Calendar: Fix ATTACH:null on missing ctftime_url
1 parent 4d12bd9 commit 5e110fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/routes/ical.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function icalRoute(pool: Pool): Handler {
6262
description: ctf.description,
6363
summary: ctf.title,
6464
url: ctf.ctf_url,
65-
attachments: [ctf.ctftime_url],
65+
attachments: ctf.ctftime_url ? [ctf.ctftime_url] : [],
6666
});
6767
}
6868

0 commit comments

Comments
 (0)