diff --git a/http-client/index.ts b/http-client/index.ts index 3fb09696e..7f30904a2 100644 --- a/http-client/index.ts +++ b/http-client/index.ts @@ -97,7 +97,7 @@ export type Node = z.infer; const nodeSchema = z.object({ id: z.string(), - agent: z.string(), + agent: z.string().nullable(), config: nodeConfigSchema.nullable(), state: z.union([z.literal("running"), z.literal("stopped")]), avatarUrl: z.string().optional(), diff --git a/src/views/nodes/View.svelte b/src/views/nodes/View.svelte index f6e12c77c..55eea229a 100644 --- a/src/views/nodes/View.svelte +++ b/src/views/nodes/View.svelte @@ -166,9 +166,11 @@
- + {#if node.agent} + + {/if}