From: Stephen Smith Date: Wed, 12 Oct 2022 17:49:26 +0000 (-0400) Subject: 16073: Filter out objects from process details attributes containerRequest properties... X-Git-Tag: 2.5.0~31^2~17 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/ebd12721a86b922de85a7ea57271d24a7a2df596 16073: Filter out objects from process details attributes containerRequest properties chips Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- diff --git a/src/views/process-panel/process-details-attributes.tsx b/src/views/process-panel/process-details-attributes.tsx index 6f3277cb..4892eb33 100644 --- a/src/views/process-panel/process-details-attributes.tsx +++ b/src/views/process-panel/process-details-attributes.tsx @@ -59,6 +59,8 @@ export const ProcessDetailsAttributes = withStyles(styles, { withTheme: true })( const container = props.container; const classes = props.classes; const mdSize = props.twoCol ? 6 : 12; + const filteredPropertyKeys = Object.keys(containerRequest.properties) + .filter(k => (typeof containerRequest.properties[k] !== 'object')); return @@ -123,8 +125,8 @@ export const ProcessDetailsAttributes = withStyles(styles, { withTheme: true })( */} - {Object.keys(containerRequest.properties).length > 0 - ? Object.keys(containerRequest.properties).map(k => + {filteredPropertyKeys.length > 0 + ? filteredPropertyKeys.map(k => Array.isArray(containerRequest.properties[k]) ? containerRequest.properties[k].map((v: string) => getPropertyChip(k, v, undefined, classes.propertyTag))