added sanity check to avoid unexpected eval error (#12506)
This commit is contained in:
parent
e05e75758d
commit
9d9803a3d3
|
|
@ -706,17 +706,19 @@ export default class DataTreeEvaluator {
|
|||
"config",
|
||||
"actionConfiguration",
|
||||
);
|
||||
const validationConfig = this.allActionValidationConfig[
|
||||
entity.actionId
|
||||
][configProperty];
|
||||
this.validateActionProperty(
|
||||
fullPropertyPath,
|
||||
entity,
|
||||
currentTree,
|
||||
evalPropertyValue,
|
||||
unEvalPropertyValue,
|
||||
validationConfig,
|
||||
);
|
||||
const validationConfig =
|
||||
!!this.allActionValidationConfig[entity.actionId] &&
|
||||
this.allActionValidationConfig[entity.actionId][configProperty];
|
||||
if (!!validationConfig && !_.isEmpty(validationConfig)) {
|
||||
this.validateActionProperty(
|
||||
fullPropertyPath,
|
||||
entity,
|
||||
currentTree,
|
||||
evalPropertyValue,
|
||||
unEvalPropertyValue,
|
||||
validationConfig,
|
||||
);
|
||||
}
|
||||
}
|
||||
const safeEvaluatedValue = removeFunctions(evalPropertyValue);
|
||||
_.set(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user