fix some UI bugs, warnings and some preload issues.

This commit is contained in:
KingKDot
2026-07-15 10:34:43 -05:00
parent c577d8b2b6
commit 22b0eed5e1
12 changed files with 197 additions and 40 deletions
+2 -2
View File
@@ -138,7 +138,7 @@ async function prefetchClientPage(page) {
const key = params.toString();
if (pageCache.has(key)) return;
try {
const res = await fetch(`/api/clients?${key}`);
const res = await fetch(`/api/clients?${key}`, { credentials: "include" });
if (!res.ok) return;
rememberPage(key, await res.json());
} catch {}
@@ -169,7 +169,7 @@ export async function loadWithOptions(options = {}) {
render(cached, { reorder, fromCache: true });
}
const res = await fetch(`/api/clients?${cacheKey}`);
const res = await fetch(`/api/clients?${cacheKey}`, { credentials: "include" });
if (!res.ok) throw new Error(`status ${res.status}`);
const data = await res.json();
lastClientData = data;