Author SHA1 Message Date
SCOPEDDandClaude ce49447b6e Fix Emails page structuredClone error on load (#5)
Server integrations / Paper and protocol tests (push) Failing after 22s
Server integrations / fabric / 1.20.1 (push) Failing after 6s
Server integrations / fabric / 1.21.1 (push) Failing after 7s
Server integrations / fabric / 26.1.2 (push) Failing after 9s
Server integrations / fabric / 26.2 (push) Failing after 8s
Server integrations / fabric / 26.3 (push) Failing after 7s
Server integrations / forge / 1.20.1 (push) Failing after 5s
Server integrations / forge / 1.21.1 (push) Failing after 6s
Server integrations / forge / 26.2 (push) Failing after 7s
Server integrations / forge / 26.1.2 (push) Failing after 7s
Server integrations / forge / 26.3 (push) Failing after 12s
CI / Web UIs (type-check + build) (panel/web) (push) Canceled after 0s
CI / Real installs (Mojang, Fabric, Quilt, Forge, NeoForge) (push) Canceled after 0s
CI / Docker image builds (push) Canceled after 0s
CI / Rust (fmt, clippy, tests) (push) Canceled after 1m40s
CI / Launcher (Windows build check) (push) Canceled after 1m40s
CI / Web UIs (type-check + build) (launcher) (push) Canceled after 1m44s
Clone from the raw API response instead of the $state proxy.


Claude-Session: https://claude.ai/code/session_01VvKPBTwMK2SLDNUp5SxR7A

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-30 22:38:50 -04:00
+4 -3
View File
@@ -26,9 +26,10 @@
async function load() { async function load() {
try { try {
data = await get<Data>('/api/admin/email'); const d = await get<Data>('/api/admin/email');
templates = structuredClone(data.templates); data = d;
if (!groupId && data.groups[0]) groupId = data.groups[0].id; templates = structuredClone(d.templates);
if (!groupId && d.groups[0]) groupId = d.groups[0].id;
} catch (e) { toastError(e); } } 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); }); onMount(() => { load(); const i = setInterval(() => get<Data>('/api/admin/email').then((d) => data && (data.log = d.log)).catch(() => {}), 5000); return () => clearInterval(i); });