mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-19 17:14:45 +00:00
Router might be undefined added safe check (#4198)
This commit is contained in:
parent
3fbdc93c51
commit
093099d990
@ -220,11 +220,11 @@ export class SearchInputComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
get onLibrariesSearchResults() {
|
||||
return this.router.url.indexOf('/search-libraries') === 0;
|
||||
return this.router?.url.indexOf('/search-libraries') === 0;
|
||||
}
|
||||
|
||||
get onSearchResults() {
|
||||
return !this.onLibrariesSearchResults && this.router.url.indexOf('/search') === 0;
|
||||
return !this.onLibrariesSearchResults && this.router?.url.indexOf('/search') === 0;
|
||||
}
|
||||
|
||||
isFilesChecked(): boolean {
|
||||
|
Loading…
x
Reference in New Issue
Block a user