fix: wrap model data in named objects and fix renderGuardMulti empty check

This commit is contained in:
2026-06-23 00:08:40 +00:00
parent b673e87c9b
commit 75aa6fb885
5 changed files with 13 additions and 7 deletions
+2 -2
View File
@@ -93,7 +93,7 @@ modelRegister('nginx', {
fetch: async () => {
const r = await apiFetch('/api/proxy/domains');
if (!r.ok) throw new Error(r.error);
return r.data || [];
return { domains: r.data || [] };
},
});
@@ -102,7 +102,7 @@ modelRegister('acme', {
fetch: async () => {
const r = await apiFetch('/api/certs/list');
if (!r.ok) throw new Error(r.error);
return r.data || [];
return { certs: r.data || [] };
},
});