Fixing bug with uncatched errors on admin panel

This commit is contained in:
Fabian Stamm 2018-11-09 19:12:24 +01:00
parent 4c1813ab05
commit 8f384fbef8

View File

@ -162,7 +162,7 @@ Handlebars.registerHelper("formatDate", function (datetime, format) {
setCustomCard(formt(client)); setCustomCard(formt(client));
} }
await loadList(); await loadList().catch(catchError);
} }
async function renderRegCode() { async function renderRegCode() {
@ -186,7 +186,7 @@ Handlebars.registerHelper("formatDate", function (datetime, format) {
request("/api/admin/regcode", "POST").then(() => loadList()).catch(catchError); request("/api/admin/regcode", "POST").then(() => loadList()).catch(catchError);
} }
await loadList(); await loadList().catch(catchError);
} }
const type = new URL(window.location.href).searchParams.get("type"); const type = new URL(window.location.href).searchParams.get("type");