diff --git a/packages/doc-ui/src/contributors/contributors.tsx b/packages/doc-ui/src/contributors/contributors.tsx index fc89c42..a67a6d6 100644 --- a/packages/doc-ui/src/contributors/contributors.tsx +++ b/packages/doc-ui/src/contributors/contributors.tsx @@ -17,8 +17,8 @@ const fetchContributors = async (repo: string): Promise => { } catch (error) {} } - const response = await fetch(`https://api.github.com/repos/${repo}/contributors`); - if (!response.ok) { + const response = await fetch(`https://api.github.com/repos/${repo}/contributors`).catch(() => undefined); + if (!response?.ok) { return []; }