in src/js/utils/RulePropertyUtils.js [15:33]
static isValid(ruleProperty: RuleProperty): boolean {
if (ruleProperty.selector == '' || ruleProperty.selector == null) {
return false;
}
if (
ruleProperty.type != RulePropertyTypes.ELEMENT &&
ruleProperty.attribute == null &&
ruleProperty.definition.defaultAttribute == null
) {
return false;
}
if (
ruleProperty.type == RulePropertyTypes.DATETIME &&
ruleProperty.format == ''
) {
return false;
}
return true;
}