aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-list/video-search.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-19 18:00:31 +0100
committerChocobozzz <me@florianbigard.com>2018-03-19 18:00:31 +0100
commit9af61e84309c23ffbfd7562435a5fadd86cdf20c (patch)
treeeb367495b082a776c21b603c40bbe2ad0a8ebc6d /client/src/app/videos/video-list/video-search.component.ts
parent606ca5bccf55e75a20a70d41a4d1f2cbf12d2563 (diff)
downloadPeerTube-9af61e84309c23ffbfd7562435a5fadd86cdf20c.tar.gz
PeerTube-9af61e84309c23ffbfd7562435a5fadd86cdf20c.tar.zst
PeerTube-9af61e84309c23ffbfd7562435a5fadd86cdf20c.zip
Don't forget to clean up subscriptions
Diffstat (limited to 'client/src/app/videos/video-list/video-search.component.ts')
-rw-r--r--client/src/app/videos/video-list/video-search.component.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/videos/video-list/video-search.component.ts b/client/src/app/videos/video-list/video-search.component.ts
index 241b97bc7..788797a4c 100644
--- a/client/src/app/videos/video-list/video-search.component.ts
+++ b/client/src/app/videos/video-list/video-search.component.ts
@@ -47,9 +47,9 @@ export class VideoSearchComponent extends AbstractVideoList implements OnInit, O
47 } 47 }
48 48
49 ngOnDestroy () { 49 ngOnDestroy () {
50 if (this.subActivatedRoute) { 50 super.ngOnDestroy()
51 this.subActivatedRoute.unsubscribe() 51
52 } 52 if (this.subActivatedRoute) this.subActivatedRoute.unsubscribe()
53 } 53 }
54 54
55 getVideosObservable (page: number) { 55 getVideosObservable (page: number) {