Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0bf39071a | ||
|
|
deabea60ca | ||
|
|
7a1f3431ae | ||
|
|
1954448219 |
@@ -26,9 +26,10 @@
|
||||
|
||||
async function load() {
|
||||
try {
|
||||
data = await get<Data>('/api/admin/email');
|
||||
templates = structuredClone(data.templates);
|
||||
if (!groupId && data.groups[0]) groupId = data.groups[0].id;
|
||||
const d = await get<Data>('/api/admin/email');
|
||||
data = d;
|
||||
templates = structuredClone(d.templates);
|
||||
if (!groupId && d.groups[0]) groupId = d.groups[0].id;
|
||||
} catch (e) { toastError(e); }
|
||||
}
|
||||
onMount(() => { load(); const i = setInterval(() => get<Data>('/api/admin/email').then((d) => data && (data.log = d.log)).catch(() => {}), 5000); return () => clearInterval(i); });
|
||||
|
||||
Reference in new issue
Block a user