This commit is contained in:
Ethan O'Brien 2024-05-27 16:15:45 -05:00
parent 7bd620e110
commit a6592beed0

View file

@ -8,7 +8,6 @@ function Admin() {
const ids = [setimp, setexp]; const ids = [setimp, setexp];
const handleSubmit = async (id, event) => { const handleSubmit = async (id, event) => {
ids[id](event.target.checked);
await Request( await Request(
"/api/webui/admin", "/api/webui/admin",
{ {
@ -16,6 +15,7 @@ function Admin() {
export: !!exp export: !!exp
} }
); );
ids[id](event.target.checked);
}; };
if (imp === undefined) { if (imp === undefined) {