Merge pull request #4173 from vvlladd28/improvement/enities-tables/lable-include-dots
UI: Added the ability to get the value of a key that contains dots in the name to a table widgets
This commit is contained in:
commit
2ac7b122dc
@ -324,6 +324,9 @@ export function snakeCase(name: string, separator: string): string {
|
||||
}
|
||||
|
||||
export function getDescendantProp(obj: any, path: string): any {
|
||||
if (obj.hasOwnProperty(path)) {
|
||||
return obj[path];
|
||||
}
|
||||
return path.split('.').reduce((acc, part) => acc && acc[part], obj);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user