This commit is contained in:
CommanderRoot
2025-02-01 11:08:52 +00:00
committed by GitHub
4 changed files with 11 additions and 11 deletions

View File

@@ -282,6 +282,6 @@ function select(obj: any, path: string): any {
return obj[path]
}
const key = path.substr(0, i)
return select(obj[key], path.substr(i + 1))
const key = path.slice(0, i)
return select(obj[key], path.slice(i + 1))
}