Skip to content

Commit

Permalink
fixes (#28834) (#28977)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Jan 18, 2019
1 parent 75a6af3 commit 888209a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function unflatten(data) {
let prop = '';
let m;
while (m = regex.exec(p)) {
cur = cur[prop] || (cur[prop] = (m[2] ? [] : {}));
cur = (cur.hasOwnProperty(prop) && cur[prop]) || (cur[prop] = (m[2] ? [] : {}));
prop = m[2] || m[1];
}
cur[prop] = data[p];
Expand Down

0 comments on commit 888209a

Please sign in to comment.