aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+search
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+search')
-rw-r--r--client/src/app/+search/search.component.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/client/src/app/+search/search.component.ts b/client/src/app/+search/search.component.ts
index 250062e0c..7425b7016 100644
--- a/client/src/app/+search/search.component.ts
+++ b/client/src/app/+search/search.component.ts
@@ -1,4 +1,4 @@
1import { forkJoin, of, Subscription } from 'rxjs' 1import { forkJoin, Subscription } from 'rxjs'
2import { LinkType } from 'src/types/link.type' 2import { LinkType } from 'src/types/link.type'
3import { Component, OnDestroy, OnInit } from '@angular/core' 3import { Component, OnDestroy, OnInit } from '@angular/core'
4import { ActivatedRoute, Router } from '@angular/router' 4import { ActivatedRoute, Router } from '@angular/router'
@@ -19,7 +19,7 @@ import { HTMLServerConfig, SearchTargetType } from '@shared/models'
19export class SearchComponent implements OnInit, OnDestroy { 19export class SearchComponent implements OnInit, OnDestroy {
20 error: string 20 error: string
21 21
22 results: (Video | VideoChannel)[] = [] 22 results: (Video | VideoChannel | VideoPlaylist)[] = []
23 23
24 pagination = { 24 pagination = {
25 currentPage: 1, 25 currentPage: 1,
@@ -283,8 +283,6 @@ export class SearchComponent implements OnInit, OnDestroy {
283 } 283 }
284 284
285 private getVideoChannelObs () { 285 private getVideoChannelObs () {
286 if (!this.currentSearch) return of({ data: [], total: 0 })
287
288 const params = { 286 const params = {
289 search: this.currentSearch, 287 search: this.currentSearch,
290 componentPagination: immutableAssign(this.pagination, { itemsPerPage: this.channelsPerPage }), 288 componentPagination: immutableAssign(this.pagination, { itemsPerPage: this.channelsPerPage }),
@@ -301,8 +299,6 @@ export class SearchComponent implements OnInit, OnDestroy {
301 } 299 }
302 300
303 private getVideoPlaylistObs () { 301 private getVideoPlaylistObs () {
304 if (!this.currentSearch) return of({ data: [], total: 0 })
305
306 const params = { 302 const params = {
307 search: this.currentSearch, 303 search: this.currentSearch,
308 componentPagination: immutableAssign(this.pagination, { itemsPerPage: this.playlistsPerPage }), 304 componentPagination: immutableAssign(this.pagination, { itemsPerPage: this.playlistsPerPage }),