Skip to content

Commit

Permalink
fixed timelion props (#29125)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobelb committed Jan 25, 2019
1 parent 59ab496 commit 6e63c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core_plugins/timelion/server/series_functions/props.js
Expand Up @@ -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];
Expand Down

0 comments on commit 6e63c2c

Please sign in to comment.