]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/header/search-typeahead.component.ts
Migrate client to eslint
[github/Chocobozzz/PeerTube.git] / client / src / app / header / search-typeahead.component.ts
index b5d76c70e1143ff45d7369bd9c445ec8783460f1..e10baea2b967a5a98ba0f5bf84a7b214144dad4b 100644 (file)
@@ -199,7 +199,7 @@ export class SearchTypeaheadComponent implements OnInit, AfterViewChecked, OnDes
   }
 
   private loadUserLanguagesIfNeeded (queryParams: any) {
-    if (queryParams && queryParams.languageOneOf) return of(queryParams)
+    if (queryParams?.languageOneOf) return of(queryParams)
 
     return this.authService.userInformationLoaded
                .pipe(