This commit is contained in:
Jan Prochazka
2024-12-28 15:36:05 +01:00
parent 317f6256f6
commit bd0404fbaf
2 changed files with 8 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ let modified = false;
function conditionMatch(condition, args) {
if (_.isString(condition)) {
return args.name == condition;
return args.key == condition;
}
return false;
}
@@ -74,9 +74,13 @@ function processJsonStep(json, args) {
if (_.isPlainObject(value)) {
if (_.intersection(args.allNames ?? [], Object.keys(value))?.length > 0) {
modified = true;
return value[args.name];
return value[args.key];
}
}
if (value?._include) {
return includes[value?._include];
}
});
}