diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps')
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx index 1d29eddbcb0..152976ad5cc 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx @@ -134,7 +134,7 @@ export default class RuleListItem extends React.PureComponent<Props> { return null; } - const canCopy = selectedProfile.actions && selectedProfile.actions.copy; + const canCopy = selectedProfile.actions?.copy; if (selectedProfile.isBuiltIn && canCopy) { return ( <td className="coding-rule-table-meta-cell coding-rule-activation-actions"> @@ -147,7 +147,7 @@ export default class RuleListItem extends React.PureComponent<Props> { ); } - const canEdit = selectedProfile.actions && selectedProfile.actions.edit; + const canEdit = selectedProfile.actions?.edit; if (!canEdit) { return null; } |