From d92aee6e56901462da13eb88359a674c83cee5a6 Mon Sep 17 00:00:00 2001 From: Mat Pellerin Date: Fri, 8 Dec 2023 09:30:47 +0100 Subject: [PATCH] Fix [sc-8033]: no zones in standalone mode (#1178) --- libs/common/src/lib/guards/select-kb.guard.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/common/src/lib/guards/select-kb.guard.ts b/libs/common/src/lib/guards/select-kb.guard.ts index 727e1eed4..7c4dcb6bb 100644 --- a/libs/common/src/lib/guards/select-kb.guard.ts +++ b/libs/common/src/lib/guards/select-kb.guard.ts @@ -24,8 +24,10 @@ export const selectKbGuard = (route: ActivatedRouteSnapshot) => { filter((refreshing) => !refreshing), ); + const zoneList = selectService.standalone ? of([]) : zoneService.getZones(); + return accountSlug - ? zoneService.getZones().pipe( + ? zoneList.pipe( switchMap((zones) => isKbListReady.pipe(switchMap(() => sdk.kbList.pipe(map((kbs) => ({ kbs, zones })))))), switchMap(({ kbs, zones }) => { if (kbs.length === 0) {