add connections type

This commit is contained in:
MathMan05
2025-12-12 14:51:22 -06:00
parent a6dd0c4e5d
commit f735a45894
+1 -1
View File
@@ -2834,7 +2834,7 @@ class Localuser {
fetch(this.info.api + "/connections", {
headers: this.headers,
})
.then((r) => r.json())
.then((r) => r.json() as Promise<{[key: string]: {enabled: boolean}}>)
.then((json) => {
Object.keys(json)
.sort((key) => (json[key].enabled ? -1 : 1))