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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user