fix: admin/plugins: search online was empty until some text was entered

Massimo Melina committed Mar 5, 2023 at 17:43 UTC faa9f40efc605894283028f4f8d5b2d3012476df
1 file changed +1 -1
src/github.ts
+1 -1
@@ -79,7 +79,7 @@ async function apiGithub(uri: string) {
79 return JSON.parse(res.body)
80 }
81
82 -export async function* searchPlugins(text: string) {
82 +export async function* searchPlugins(text='') {
83 const res = await apiGithub('search/repositories?q=topic:hfs-plugin+' + encodeURI(text))
84 for (const it of res.items) {
85 const repo = it.full_name