X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f0a64666816383d2641d5fa7ea22019441ac4464..61c27319e0c16b865ae381c086b61f738bb57354:/src/views-components/details-panel/project-details.tsx diff --git a/src/views-components/details-panel/project-details.tsx b/src/views-components/details-panel/project-details.tsx index 59035da115..1be04b00ee 100644 --- a/src/views-components/details-panel/project-details.tsx +++ b/src/views-components/details-panel/project-details.tsx @@ -16,7 +16,7 @@ import { RichTextEditorLink } from '~/components/rich-text-editor-link/rich-text import { withStyles, StyleRulesCallback, WithStyles } from '@material-ui/core'; import { ArvadosTheme } from '~/common/custom-theme'; import { Dispatch } from 'redux'; -import { PropertyChipComponent } from '../resource-properties-form/property-chip'; +import { getPropertyChip } from '../resource-properties-form/property-chip'; export class ProjectDetails extends DetailsData { getIcon(className?: string) { @@ -83,9 +83,10 @@ const ProjectDetailsComponent = connect(null, mapDispatchToProps)( { Object.keys(project.properties).map(k => - + Array.isArray(project.properties[k]) + ? project.properties[k].map((v: string) => + getPropertyChip(k, v, undefined, classes.tag)) + : getPropertyChip(k, project.properties[k], undefined, classes.tag) ) }