update admin team table
All checks were successful
deploy / build-and-deploy (/testvaro, /opt/website-test, website-test) (push) Successful in 31s
deploy / build-and-deploy (/varo, /opt/website, website) (push) Successful in 14s

This commit is contained in:
2025-06-21 23:03:16 +02:00
parent e0c91483fb
commit daa1de302b
2 changed files with 12 additions and 5 deletions

View File

@@ -1,9 +1,8 @@
export function getObjectEntryByKey(key: string, data: { [key: string]: any }): any | undefined {
let entry = data;
for (const part of key.split('.')) {
if ((entry = entry[part]) === undefined) {
return undefined;
}
entry = entry[part]
if (entry === null || typeof entry !== 'object') return entry;
}
return entry;
}