Fix optimizeSimpleObject for arrays of objects (#12815)
This commit is contained in:
parent
a08b4f780c
commit
9b56ca3961
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ let valueToMeta = function (sender, value, optimizeSimpleObject = false) {
|
|||
|
||||
// Fill the meta object according to value's type.
|
||||
if (meta.type === 'array') {
|
||||
meta.members = value.map((el) => valueToMeta(sender, el))
|
||||
meta.members = value.map((el) => valueToMeta(sender, el, optimizeSimpleObject))
|
||||
} else if (meta.type === 'object' || meta.type === 'function') {
|
||||
meta.name = value.constructor ? value.constructor.name : ''
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue