Skip to content

Commit 0ad4e41

Browse files
bjohansebasCopilot
andauthored
Update apps/site/next-data/generators/supportersData.mjs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com>
1 parent 448e37e commit 0ad4e41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/site/next-data/generators/supportersData.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ async function fetchGithubSponsorsData() {
8787
}
8888

8989
const nodeRes = data.data.organization?.sponsorsActivities;
90+
if (!nodeRes) {
91+
return sponsors;
92+
}
9093

9194
const { nodes } = nodeRes;
9295
const mapped = nodes.map(n => {

0 commit comments

Comments
 (0)