Fixing bug with uncatched errors on admin panel
This commit is contained in:
parent
4c1813ab05
commit
8f384fbef8
|
@ -162,7 +162,7 @@ Handlebars.registerHelper("formatDate", function (datetime, format) {
|
|||
setCustomCard(formt(client));
|
||||
}
|
||||
|
||||
await loadList();
|
||||
await loadList().catch(catchError);
|
||||
}
|
||||
|
||||
async function renderRegCode() {
|
||||
|
@ -186,7 +186,7 @@ Handlebars.registerHelper("formatDate", function (datetime, format) {
|
|||
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");
|
||||
|
|
Loading…
Reference in New Issue