parent
f701e2af15
commit
5bb6fddee0
1 changed files with 2 additions and 2 deletions
|
|
@ -251,7 +251,7 @@ const extractFlagValues = (flagPath: string, path: FlagMatchRulePathSegment[]):
|
||||||
|
|
||||||
if (keys.length == 1) {
|
if (keys.length == 1) {
|
||||||
return opart.map((s, i) => {
|
return opart.map((s, i) => {
|
||||||
return { value: s, path: [{ object: o, path: key + "[" + i + "]"}, ... path] };
|
return { value: o, path: [{ object: s, path: key + "[" + i + "]"}, ... path] };
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return opart.reduce((res: FlagMatchRuleValue[] | undefined, oin: any, i: number) => {
|
return opart.reduce((res: FlagMatchRuleValue[] | undefined, oin: any, i: number) => {
|
||||||
|
|
@ -314,7 +314,7 @@ const getFirstWithDataAsDate = (flagPaths: string[], path: FlagMatchRulePathSegm
|
||||||
|
|
||||||
const softwareAgentFromAction = (action: FlagMatchRuleValue): string | undefined => {
|
const softwareAgentFromAction = (action: FlagMatchRuleValue): string | undefined => {
|
||||||
const agent = getFirstWithData([
|
const agent = getFirstWithData([
|
||||||
"softwareAgent", "../../../claim_generator"
|
"softwareAgent/name", "softwareAgent", "../../../claim_generator"
|
||||||
], action.path);
|
], action.path);
|
||||||
return agent;
|
return agent;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue