cmd/pkgserver: remove get endpoint count field
This commit is contained in:
@@ -45,7 +45,6 @@ async function infoRequest(): Promise<InfoPayload> {
|
||||
return payload as InfoPayload
|
||||
}
|
||||
class GetPayload {
|
||||
count: number
|
||||
values: PackageIndexEntry[]
|
||||
}
|
||||
|
||||
@@ -108,7 +107,7 @@ class State {
|
||||
.then(res => {
|
||||
let table = document.getElementById("pkg-list")
|
||||
table.innerHTML = ''
|
||||
for(let i = 0; i < res.count; i++) {
|
||||
for(let i = 0; i < res.values.length; i++) {
|
||||
table.appendChild(toHTML(res.values[i]))
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user