From ebd12721a86b922de85a7ea57271d24a7a2df596 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Wed, 12 Oct 2022 13:49:26 -0400 Subject: [PATCH] 16073: Filter out objects from process details attributes containerRequest properties chips Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- src/views/process-panel/process-details-attributes.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)) -- 2.30.2