Skip to content

Commit 7ab3910

Browse files
console log response to see the issue
1 parent 22887ec commit 7ab3910

File tree

1 file changed

+1
-2
lines changed
  • src/app/(public)/repos/[language]

1 file changed

+1
-2
lines changed

src/app/(public)/repos/[language]/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async function getRepos(
127127
}
128128

129129
const res = await fetch(apiUrl, { headers });
130-
console.log(res.ok);
130+
console.log(JSON.stringify(res));
131131
if (!res.ok) notFound();
132132

133133
const repos = (await res.json()) as RepoData;
@@ -137,7 +137,6 @@ async function getRepos(
137137
return !repo.archived && !reports.find(report => report.repoId === repo.id);
138138
});
139139

140-
console.log(repos.items);
141140
if (!Array.isArray(repos.items) || repos.items?.length < 1) notFound();
142141

143142
return {

0 commit comments

Comments
 (0)