From 8617fb8715efcb9394f8faad3020c8d5272c66fa Mon Sep 17 00:00:00 2001 From: aziz Date: Thu, 18 Jan 2024 16:34:14 +0100 Subject: [PATCH] code improvement --- .../catalog-browser-tool/catalog-browser-tool.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/integration/src/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.ts b/packages/integration/src/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.ts index 22fe64b59..15b485207 100644 --- a/packages/integration/src/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.ts +++ b/packages/integration/src/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.ts @@ -83,8 +83,8 @@ export class CatalogBrowserToolComponent implements OnInit, OnDestroy { ); const authenticate$ = this.authService.authenticate$; this.catalog$$ = combineLatest([catalog$, authenticate$]).subscribe( - (result) => { - const catalog = result[0].entity; + ([record, authenticate]) => { + const catalog = record.entity; this.catalog = catalog; this.loadCatalogItems(this.catalog); }