Fixed User Loading Bug

Manchmal wurden User im Input Form nicht richtig geladen. Dieser Bug ist hiermit behoben
This commit is contained in:
brausjonas
2023-06-22 00:01:48 +02:00
parent fcdf8492a6
commit be9ace5238
+2 -3
View File
@@ -40,9 +40,7 @@ export default function InputForm(p) {
let url = baseURL + "/users/all?sessionid=" + localStorage.getItem("sessionid")
fetch(url).then(r => r.json()).then(u => {
setUsers(u)
})
}).then(() => {
let tempSemesterNumber = 0
if(localStorage.getItem("currentsid") != 0)
{
@@ -85,6 +83,7 @@ export default function InputForm(p) {
})
})
}
})
}, [])
function onButtonAbort(e) {