From: Lucas Di Pentima Date: Wed, 13 Nov 2019 20:20:57 +0000 (-0300) Subject: 15067: Clicking on a property chip copies its visual representation. X-Git-Tag: 2.0.0~29^2~7 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/0369ee1292c296942219b9ed49654f7343680eca 15067: Clicking on a property chip copies its visual representation. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- 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")}> + + ; + })}