fix(app-render): handle optional model in renderApp function
This commit is contained in:
@@ -767,7 +767,10 @@ export function renderApp(state: AppViewState) {
|
|||||||
Array.isArray(list) && list[index]
|
Array.isArray(list) && list[index]
|
||||||
? (list[index] as { model?: unknown })
|
? (list[index] as { model?: unknown })
|
||||||
: null;
|
: null;
|
||||||
const existing = entry.model;
|
const existing = entry?.model;
|
||||||
|
if (!existing) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const resolvePrimary = () => {
|
const resolvePrimary = () => {
|
||||||
if (typeof existing === "string") {
|
if (typeof existing === "string") {
|
||||||
return existing.trim() || null;
|
return existing.trim() || null;
|
||||||
|
|||||||
Reference in New Issue
Block a user