mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-11 04:49:08 +00:00
FIX: pipeline details now showing correct default values on s3 pipelines
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
export function getObjValueFromPath<T>(data: { object: T; path: string }): T {
|
||||
const { object, path } = data;
|
||||
const keys = path.split('.');
|
||||
|
||||
let value = JSON.parse(JSON.stringify(object));
|
||||
for (const key of keys) {
|
||||
if (value) value = value[key];
|
||||
}
|
||||
return value;
|
||||
}
|
||||
Reference in New Issue
Block a user