Skip to content

Commit

Permalink
Fixed sonarqube errors
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano committed Nov 28, 2024
1 parent 91376c6 commit 56c7cb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class LayoutOrientedConfigService implements ContentMetadataConfig {

private setEditableProperty(propertyGroup: Property | Property[], itemConfig): Property | Property[] {
if (Array.isArray(propertyGroup)) {
propertyGroup.map((property) => (property.editable = itemConfig.editable !== undefined ? itemConfig.editable : true));
propertyGroup.forEach((property) => (property.editable = itemConfig.editable !== undefined ? itemConfig.editable : true));
} else {
propertyGroup.editable = itemConfig.editable !== undefined ? itemConfig.editable : true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export class ShareDataTableAdapter implements DataTableAdapter {

isRuleFolder(node: any) {
const nodeAspects = this.getNodeAspectNames(node);
return nodeAspects.indexOf('rule:rules') > -1 || nodeAspects.indexOf('rule:rules') > -1;
return nodeAspects.indexOf('rule:rules') > -1;
}

isALinkFolder(node: any) {
Expand Down

0 comments on commit 56c7cb4

Please sign in to comment.