From 01ce144fa9abf8dc920d476e0f420a33356a8e41 Mon Sep 17 00:00:00 2001 From: Shakker Date: Wed, 4 Feb 2026 15:42:58 +0000 Subject: [PATCH] fix(app-render): handle optional model in renderApp function --- ui/src/ui/app-render.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/ui/app-render.ts b/ui/src/ui/app-render.ts index 44d83c775d..0c6acc092a 100644 --- a/ui/src/ui/app-render.ts +++ b/ui/src/ui/app-render.ts @@ -767,7 +767,10 @@ export function renderApp(state: AppViewState) { Array.isArray(list) && list[index] ? (list[index] as { model?: unknown }) : null; - const existing = entry.model; + const existing = entry?.model; + if (!existing) { + return; + } const resolvePrimary = () => { if (typeof existing === "string") { return existing.trim() || null;