aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-17 10:28:38 +0200
committerChocobozzz <me@florianbigard.com>2018-09-17 10:28:38 +0200
commit860cfb31e343f2317416da738f7155803ef4fe75 (patch)
treed426eff8072972c122b5604e36cfc83bea3a0246
parent2ff83ae2923aa93ccefb0fa989ae0bf138a46d77 (diff)
downloadPeerTube-860cfb31e343f2317416da738f7155803ef4fe75.tar.gz
PeerTube-860cfb31e343f2317416da738f7155803ef4fe75.tar.zst
PeerTube-860cfb31e343f2317416da738f7155803ef4fe75.zip
Fix "no results" on overview page
-rw-r--r--client/src/app/shared/overview/overview.service.ts2
-rw-r--r--server/initializers/constants.ts1
2 files changed, 3 insertions, 0 deletions
diff --git a/client/src/app/shared/overview/overview.service.ts b/client/src/app/shared/overview/overview.service.ts
index 4a4714af6..097079e6d 100644
--- a/client/src/app/shared/overview/overview.service.ts
+++ b/client/src/app/shared/overview/overview.service.ts
@@ -56,6 +56,8 @@ export class OverviewService {
56 } 56 }
57 } 57 }
58 58
59 if (observables.length === 0) return of(videosOverviewResult)
60
59 return forkJoin(observables) 61 return forkJoin(observables)
60 .pipe( 62 .pipe(
61 // Translate categories 63 // Translate categories
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 2e0b32ce2..02363352e 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -660,6 +660,7 @@ if (isTestInstance() === true) {
660 660
661 CACHE.VIDEO_CAPTIONS.MAX_AGE = 3000 661 CACHE.VIDEO_CAPTIONS.MAX_AGE = 3000
662 MEMOIZE_TTL.OVERVIEWS_SAMPLE = 1 662 MEMOIZE_TTL.OVERVIEWS_SAMPLE = 1
663 ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS = '0'
663} 664}
664 665
665updateWebserverConfig() 666updateWebserverConfig()