From: Chocobozzz Date: Mon, 17 Sep 2018 08:28:38 +0000 (+0200) Subject: Fix "no results" on overview page X-Git-Tag: v1.0.0-beta.14~65 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=860cfb31e343f2317416da738f7155803ef4fe75;p=github%2FChocobozzz%2FPeerTube.git Fix "no results" on overview page --- 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 { } } + if (observables.length === 0) return of(videosOverviewResult) + return forkJoin(observables) .pipe( // 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) { CACHE.VIDEO_CAPTIONS.MAX_AGE = 3000 MEMOIZE_TTL.OVERVIEWS_SAMPLE = 1 + ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS = '0' } updateWebserverConfig()