Skip to content

Commit bd37205

Browse files
1 parent 96f57df commit bd37205

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

client/src/services/github.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export async function loadAllStars (accessToken) {
3030
}
3131

3232
export async function loadSuggestions ({ value, accessToken }) {
33-
const response = await fetch(`https://api.github.com/search/repositories?q=${value}`, makeReqOpts(accessToken))
33+
const response = await fetch(
34+
'https://api.github.com/search/repositories?q=' + encodeURIComponent(`${value} fork:true`),
35+
makeReqOpts(accessToken)
36+
)
3437
if (response.status !== 200) { throw new Error() }
3538
return response.json()
3639
}

0 commit comments

Comments
 (0)