fixed timelion props (#29125)

This commit is contained in:
Brandon Kobel 2019-01-25 15:09:14 -08:00 committed by GitHub
parent 59ab496fbf
commit 6e63c2c944
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,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];