*improve object path check
This commit is contained in:
parent
785e0b836c
commit
a3f3e157b9
|
@ -77,7 +77,10 @@ export default class Config {
|
||||||
const value = json[key];
|
const value = json[key];
|
||||||
|
|
||||||
let keyPath = key.split(".");
|
let keyPath = key.split(".");
|
||||||
let isArray = typeof parseInt(keyPath.pop()) === "number";
|
let isArray =
|
||||||
|
key.includes(".") &&
|
||||||
|
keyPath.length > 1 &&
|
||||||
|
typeof parseInt(keyPath.pop()) === "number";
|
||||||
|
|
||||||
if (isArray) {
|
if (isArray) {
|
||||||
let itemPath = keyPath.join(".");
|
let itemPath = keyPath.join(".");
|
||||||
|
|
Loading…
Reference in New Issue