mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
fix: layload errors if component not exist (#6683)
This commit is contained in:
parent
8d8229f8ca
commit
181c24c2a3
@ -796,7 +796,7 @@ export function useDesignable() {
|
|||||||
return component;
|
return component;
|
||||||
}
|
}
|
||||||
const c = get(components, component);
|
const c = get(components, component);
|
||||||
return c[LAZY_COMPONENT_KEY] ?? c;
|
return c?.[LAZY_COMPONENT_KEY] ?? c;
|
||||||
},
|
},
|
||||||
[get],
|
[get],
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user