populated managetournament form
This commit is contained in:
parent
dee81b51b4
commit
99e027f470
|
@ -84,8 +84,8 @@ function ManageTournament(props) {
|
||||||
setTournamentInfo(data.data);
|
setTournamentInfo(data.data);
|
||||||
document.getElementById("editName").value = data.data.name;
|
document.getElementById("editName").value = data.data.name;
|
||||||
document.getElementById("editDesc").value = data.data.description;
|
document.getElementById("editDesc").value = data.data.description;
|
||||||
document.getElementById("editStartDate").value = data.data.startTime;
|
document.getElementById("editStartDate").value = data.data.startTime.slice(0, 16);
|
||||||
document.getElementById("editEndDate").value = data.data.endTime;
|
document.getElementById("editEndDate").value = data.data.endTime.slice(0, 16);
|
||||||
})
|
})
|
||||||
.catch((err) => console.log(err.message));
|
.catch((err) => console.log(err.message));
|
||||||
}, []);
|
}, []);
|
||||||
|
|
Loading…
Reference in New Issue