fix: reject non-json model values
This commit is contained in:
parent
74651a49de
commit
b7c673bbd7
3 changed files with 72 additions and 3 deletions
|
|
@ -140,16 +140,17 @@ function service(
|
|||
icon: string,
|
||||
href?: string,
|
||||
) {
|
||||
return {
|
||||
const entry = {
|
||||
id,
|
||||
label,
|
||||
description,
|
||||
icon,
|
||||
link: href ? { href, external: true } : undefined,
|
||||
severity: "ok" as const,
|
||||
detail: "ready",
|
||||
datasource: { type: "placeholder" as const, reason: "service health adapter pending" },
|
||||
};
|
||||
|
||||
return href ? { ...entry, link: { href, external: true } } : entry;
|
||||
}
|
||||
|
||||
function group(id: string, title: string, services: ReturnType<typeof service>[]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue