From 860cfb31e343f2317416da738f7155803ef4fe75 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 17 Sep 2018 10:28:38 +0200 Subject: [PATCH] Fix "no results" on overview page --- client/src/app/shared/overview/overview.service.ts | 2 ++ server/initializers/constants.ts | 1 + 2 files changed, 3 insertions(+) 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() -- 2.41.0