diff options
-rw-r--r-- | includes/fetcher/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/fetcher/index.js b/includes/fetcher/index.js index 165053e..5ffc75e 100644 --- a/includes/fetcher/index.js +++ b/includes/fetcher/index.js @@ -33,7 +33,7 @@ issues: null, vcs: project.http_url_to_repo, web: project.web_url, - icon: project.avatar_url.replace("http://", "https://"), + icon: project.avatar_url ? project.avatar_url.replace("http://", "https://") : null, showcase: project.topics.includes("Showcase"), date: project.last_activity_at, event: (await axios.get(`https://gitlab.minteck.org/api/v4/projects/${project.id}/events`)).data[0], @@ -77,7 +77,7 @@ issues: null, vcs: project.http_url_to_repo, web: project.web_url, - icon: project.avatar_url.replace("http://", "https://"), + icon: project.avatar_url ? project.avatar_url.replace("http://", "https://") : null, showcase: project.topics.includes("Showcase"), date: project.last_activity_at, event: (await axios.get(`https://gitlab.minteck.org/api/v4/projects/${project.id}/events`)).data[0], |