mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
SonarCloud fixes (#4235)
This commit is contained in:
@@ -37,8 +37,7 @@ const isRuleActionValid = (value: unknown, actionDefinitions: ActionDefinitionTr
|
||||
: undefined;
|
||||
return (
|
||||
isRuleAction(value) &&
|
||||
actionDefinition &&
|
||||
actionDefinition.parameterDefinitions.reduce(
|
||||
actionDefinition?.parameterDefinitions.reduce(
|
||||
(isValid: boolean, paramDef: ActionParameterDefinitionTransformed) => isValid && (!paramDef.mandatory || !!value.params[paramDef.name]),
|
||||
true
|
||||
)
|
||||
|
@@ -37,7 +37,7 @@ import { Rule } from '../model/rule.model';
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class FolderRuleSetsService {
|
||||
public static MAX_RULE_SETS_PER_GET = 100;
|
||||
public static readonly MAX_RULE_SETS_PER_GET = 100;
|
||||
|
||||
static isOwnedRuleSet(ruleSet: RuleSet, nodeId: string): boolean {
|
||||
return ruleSet?.owningFolder?.id === nodeId;
|
||||
|
@@ -40,7 +40,7 @@ interface GetRulesResult {
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class FolderRulesService {
|
||||
public static MAX_RULES_PER_GET = 100;
|
||||
public static readonly MAX_RULES_PER_GET = 100;
|
||||
|
||||
public static get emptyCompositeCondition(): RuleCompositeCondition {
|
||||
return {
|
||||
|
Reference in New Issue
Block a user