We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 009eb13 + da39734 commit c46b58dCopy full SHA for c46b58d
select.js
@@ -7,7 +7,8 @@ function convertRecur(fieldName, input, arrayFields, prefix, prefixStrip) {
7
var entries = []
8
for (var key in input) {
9
entries.push('\'' + key + '\'')
10
- if (!arrayFields.includes(prefix + key)) {
+ const nestedArrayField = arrayFields.includes(prefix + key) && typeof input[key] === 'object'
11
+ if (!nestedArrayField) {
12
entries.push(convertRecur(fieldName, input[key], arrayFields, prefix + key + '.' , prefixStrip))
13
} else {
14
const path = util.pathToText([fieldName].concat((prefix + key).replace(new RegExp('^' + prefixStrip), '').split('.')), false)
0 commit comments