fix[core-components] fix cannot convert undefined or null to object error

Signed-off-by: Eric Yang <weityang@ebay.com>
This commit is contained in:
Eric Yang
2023-08-18 17:04:08 -07:00
parent 0d69e24424
commit 7fe7fdfe35
@@ -113,7 +113,7 @@ function toValue(
return <Fragment>{value}</Fragment>;
}
if (typeof value === 'object' && !Array.isArray(value)) {
if (value !== null && typeof value === 'object' && !Array.isArray(value)) {
return renderMap(value, options, nested);
}