-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sonarcloud issues fixes #3499
Sonarcloud issues fixes #3499
Conversation
f8cdb79
to
421bf24
Compare
307bd8a
to
19594c4
Compare
@@ -62,7 +62,7 @@ export class ToggleSharedComponent implements OnInit, OnDestroy { | |||
this.selectionState = selectionState; | |||
|
|||
this.isShared = | |||
(this.selectionState.first && this.selectionState.first.entry && (this.selectionState.first.entry as any).sharedByUser) || | |||
(this.selectionState?.first?.entry && (this.selectionState.first.entry as any).sharedByUser) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line can be reduced to just (this.selectionState?.first?.entry as any)?.sharedByUser
(no need to repeat this.selectionState.first.entry twice)
19594c4
to
b73a3f6
Compare
One e2e constantly failing, probably affected by the changes |
d441c9b
to
87bd5fd
Compare
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
What is the new behaviour?
Fixes most of issues reported in https://sonarcloud.io/project/issues?resolved=false&types=BUG&id=Alfresco_alfresco-content-app
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: