Skip to content

Commit

Permalink
Fix [sc-8033]: no zones in standalone mode (#1178)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpellerin42 authored Dec 8, 2023
1 parent 1307088 commit d92aee6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/common/src/lib/guards/select-kb.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d92aee6

Please sign in to comment.