interface MetadataProps {
items: MetadataTable[];
- user: UserResource[];
+ user: UserResource;
uuid: string;
}
<TableCell className={props.classes.cell}>{it.uuid}</TableCell>
<TableCell className={props.classes.cell}>{it.linkClass}</TableCell>
<TableCell className={props.classes.cell}>{it.name}</TableCell>
- <TableCell className={props.classes.cell}>{props.user.length > 0 ? `User: ${props.user[0].firstName} ${props.user[0].lastName}` : it.tailUuid}</TableCell>
+ <TableCell className={props.classes.cell}>{props.user ? `User: ${props.user.firstName} ${props.user.lastName}` : it.tailUuid}</TableCell>
<TableCell className={props.classes.cell}>{it.headUuid === props.uuid ? 'this' : it.headUuid}</TableCell>
- <TableCell className={props.classes.cell}>{JSON.stringify(it.properties, null, 2)}</TableCell>
+ <TableCell className={props.classes.cell}>{JSON.stringify(it.properties)}</TableCell>
</TableRow>
)}
</TableBody>