Skip to content

Commit c81fae6

Browse files
[ACS-9119] Added null safety check
1 parent 80a147d commit c81fae6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

projects/aca-content/src/lib/components/search/search-save/sidenav/save-search-sidenav.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ export class SaveSearchSidenavComponent implements OnInit {
6363
.select(UserPreferenceValues.Locale)
6464
.pipe(takeUntilDestroyed(this.destroyRef), delay(10))
6565
.subscribe(() => {
66-
this.item.title = this.translationService.instant('APP.BROWSE.SEARCH.SAVE_SEARCH.NAVBAR.TITLE', { number: this.savedSearchCount });
66+
if (this.item) {
67+
this.item.title = this.translationService.instant('APP.BROWSE.SEARCH.SAVE_SEARCH.NAVBAR.TITLE', { number: this.savedSearchCount });
68+
}
6769
});
6870
}
6971

0 commit comments

Comments
 (0)