From cff384f5b49ed61c1c58dc779e3b7a2855bae0b6 Mon Sep 17 00:00:00 2001 From: AliGitGut Date: Wed, 14 Jun 2023 12:24:20 +0200 Subject: [PATCH] Bugfix Inputform Bugfix for the start and enddate --- anwendung/src/components/InputForm.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) {