From: JvD_Ericsson Date: Thu, 23 Feb 2023 11:28:41 +0000 (+0000) Subject: Fix cannot view archived components on UI X-Git-Tag: 1.12.2~4 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=sdc.git;a=commitdiff_plain;h=96bfbbad6b2a7e6db7d4e78ed182c8be4f7c895f Fix cannot view archived components on UI Issue-ID: SDC-4416 Signed-off-by: JvD_Ericsson Change-Id: Ie24af434a1e983d2e7c972a117f8806bf981650e --- diff --git a/catalog-ui/src/app/ng2/services/catalog.service.ts b/catalog-ui/src/app/ng2/services/catalog.service.ts index 02ba33088f..61d4b0d609 100644 --- a/catalog-ui/src/app/ng2/services/catalog.service.ts +++ b/catalog-ui/src/app/ng2/services/catalog.service.ts @@ -58,7 +58,7 @@ export class CatalogService { public getArchiveCatalog() { return this.http.get(this.baseUrl + '/v1/catalog/archive/', {}) - .map(res => this.processComponentsResponse(res[0])); + .map(res => this.processComponentsResponse([res, []])); } private processComponentsResponse(componentsArr: [IComponentsArray, DataTypeModel[]], addSharing:boolean = false) {