From 638a8046159dca78418dc971fa22dc6d40cd4a72 Mon Sep 17 00:00:00 2001 From: Eli Perelman Date: Thu, 7 Nov 2019 11:42:47 -0500 Subject: [PATCH] Default chrome service app hidden observable to same value as force hidden --- src/core/public/chrome/chrome_service.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/public/chrome/chrome_service.tsx b/src/core/public/chrome/chrome_service.tsx index 707b13375b5c11b..08eff2b0ab49c86 100644 --- a/src/core/public/chrome/chrome_service.tsx +++ b/src/core/public/chrome/chrome_service.tsx @@ -104,10 +104,10 @@ export class ChromeService { const chromeHidden$ = new BehaviorSubject(false); const forceHidden$ = of(isEmbedParamInHash()); const appHidden$ = merge( - // Default the app being hidden to false in case the application service has - // not emitted an app ID yet since we want to trigger combineLatest below - // regardless of having a value yet. - of(false), + // Default the app being hidden to the same value as forceHidden$ in case the + // application service has not emitted an app ID yet, since we want to trigger + // combineLatest below regardless of having an application value yet. + forceHidden$, application.currentAppId$.pipe( map( appId =>