]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/search/search.component.ts
Strict templates enabled
[github/Chocobozzz/PeerTube.git] / client / src / app / search / search.component.ts
index dfd8d882332ef5e47af21d1bb3fcbb396ffd23aa..075994dd3e5d5239f76c70544b84c6b209b87783 100644 (file)
@@ -141,7 +141,8 @@ export class SearchComponent implements OnInit, OnDestroy {
     return this.advancedSearch.size()
   }
 
-  removeVideoFromArray (video: Video) {
+  // Add VideoChannel for typings, but the template already checks "video" argument is a video
+  removeVideoFromArray (video: Video | VideoChannel) {
     this.results = this.results.filter(r => !this.isVideo(r) || r.id !== video.id)
   }