Skip to content

Commit a5ed832

Browse files
committed
style: use optional chaining for SonarCloud in loadTargetDoc
1 parent e786621 commit a5ed832

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webapp/src/ts/effects/contacts.effects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class ContactsEffects {
183183
const trackPerformance = this.performanceService.track();
184184
const selected = this.selectedContact;
185185

186-
if (!selected || !selected.doc) {
186+
if (!selected?.doc) {
187187
this.contactsActions.receiveSelectedContactTargetDoc([]);
188188
trackPerformance?.stop({ name: [ ...trackName, 'load_targets_aborted' ].join(':') });
189189
return;

0 commit comments

Comments
 (0)