Fix cannot view archived components on UI 98/133398/1
authorJvD_Ericsson <jeff.van.dam@est.tech>
Thu, 23 Feb 2023 11:28:41 +0000 (11:28 +0000)
committerJeff van Dam <jeff.van.dam@est.tech>
Thu, 23 Feb 2023 13:53:04 +0000 (13:53 +0000)
Issue-ID: SDC-4416
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: Ie24af434a1e983d2e7c972a117f8806bf981650e

catalog-ui/src/app/ng2/services/catalog.service.ts

index 02ba330..61d4b0d 100644 (file)
@@ -58,7 +58,7 @@ export class CatalogService {
 
     public getArchiveCatalog() {
         return this.http.get<IComponentsArray>(this.baseUrl + '/v1/catalog/archive/', {})
-            .map(res => this.processComponentsResponse(res[0]));
+            .map(res => this.processComponentsResponse([res, []]));
     }
 
     private processComponentsResponse(componentsArr: [IComponentsArray, DataTypeModel[]], addSharing:boolean = false) {