This commit is contained in:
Thoronium
2023-04-24 20:48:18 -06:00
parent 3969c26a58
commit b78479a293
4 changed files with 20 additions and 17 deletions

View File

@@ -119,18 +119,15 @@ interface ModDownload {
export async function getMods(mode: string, page: number) {
let modList: GamebananaResponse[] = []
let hadMods = true
const resp = JSON.parse(
await invoke('list_submissions', {
mode,
page: '' + page,
})
)
const resp = JSON.parse(
await invoke('list_submissions', {
mode,
page: '' + page,
})
)
if (resp.length === 0) hadMods = false
modList = [...modList, ...resp]
modList = [...modList, ...resp]
return formatGamebananaData(modList)
}