diff --git a/anwendung/src/components/InputForm.jsx b/anwendung/src/components/InputForm.jsx index 4a24f98..b2fe53e 100644 --- a/anwendung/src/components/InputForm.jsx +++ b/anwendung/src/components/InputForm.jsx @@ -31,7 +31,6 @@ export default function InputForm(p) { let sessionid = localStorage.getItem("sessionid"); let url = baseURL + "/users/all?sessionid=" + sessionid; - await fetch(url).then(response => response.json()).then(async user => { setUsers(user) let mURL = baseURL + "/module/suid?sessionid=" + localStorage.getItem("sessionid") + "&semesterid=" + localStorage.getItem("currentsid") + "&userid="; @@ -312,14 +311,14 @@ export default function InputForm(p) { = endDate) ? "#E44747" : "white" + backgroundColor: (startDate == "" || startDate >= endDate) ? "#E44747" : "white" }} onChange={(e) => setStartDate(e.target.value)}/>
-
= endDate) ? "#E44747" : "white" + backgroundColor: (endDate == "" || startDate >= endDate) ? "#E44747" : "white" }} onChange={(e) => setEndDate(e.target.value)}/> @@ -403,7 +402,7 @@ export default function InputForm(p) {