From 0369ee1292c296942219b9ed49654f7343680eca Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Wed, 13 Nov 2019 17:20:57 -0300 Subject: [PATCH] 15067: Clicking on a property chip copies its visual representation. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- .../collection-panel/collection-panel.tsx | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/views/collection-panel/collection-panel.tsx b/src/views/collection-panel/collection-panel.tsx index f4d6532e..87768e64 100644 --- a/src/views/collection-panel/collection-panel.tsx +++ b/src/views/collection-panel/collection-panel.tsx @@ -136,17 +136,14 @@ export const CollectionPanel = compose( - { - Object.keys(item.properties).map(k => { - const ids = `${k}: ${item.properties[k]}`; - const label = `${getTagKeyLabel(k, vocabulary)}: ${getTagValueLabel(k, item.properties[k], vocabulary)}`; - return this.onCopy("Copied")}> - - ; - }) - } + {Object.keys(item.properties).map(k => { + const label = `${getTagKeyLabel(k, vocabulary)}: ${getTagValueLabel(k, item.properties[k], vocabulary)}`; + return this.onCopy("Copied")}> + + ; + })} -- 2.30.2