From 91b3992344566d0cb98afe2907991e053b857f38 Mon Sep 17 00:00:00 2001
From: "hamza.hramchi" <hamza.hramchi@xelians.fr>
Date: Fri, 16 Oct 2020 20:29:29 +0200
Subject: [PATCH] FEAT #14383 TIME 0:05 display customFields with technical
 mode + their values

---
 .../technical-information.component.ts                     | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/frontend/app/indexation/technical-information/technical-information.component.ts b/src/frontend/app/indexation/technical-information/technical-information.component.ts
index 07295c93f43..660d9d1f402 100644
--- a/src/frontend/app/indexation/technical-information/technical-information.component.ts
+++ b/src/frontend/app/indexation/technical-information/technical-information.component.ts
@@ -101,10 +101,13 @@ export class TechnicalInformationComponent implements OnInit {
             exhaustMap(() => this.http.get(`../rest/resources/${this.data.resId}`)),
             tap((data: any) => {
                 Object.keys(this.customsData).forEach(key => {
-                    console.log(key);
+                    const values = [];
+                    this.customsData[key].values.forEach(element => {
+                        values.push(element.label);
+                    });
                         this.customsData[key] = {
                             label: this.customsData[key].label,
-                            value: this.customsData[key].values,
+                            value: values,
                             icon: 'fas fa-hashtag'
                         };
                 });
-- 
GitLab