Added or to not mandatory values in the project type for printing if they are not set on the response

This commit is contained in:
ebarrios
2020-07-14 07:40:08 +02:00
parent 461f16250a
commit 07128d499b
@@ -103,7 +103,7 @@ const PageContents = () => {
</TableCell>
<TableCell>
<Typography>
<LongText text={project.projectNumber} max={30} />
<LongText text={project?.projectNumber || 'Error'} max={30} />
</Typography>
</TableCell>
<TableCell>
@@ -119,12 +119,15 @@ const PageContents = () => {
</TableCell>
<TableCell>
<Typography>
<LongText text={project.lifecycleState} max={30} />
<LongText
text={project?.lifecycleState || 'Error'}
max={30}
/>
</Typography>
</TableCell>
<TableCell>
<Typography>
<LongText text={project.createTime} max={30} />
<LongText text={project?.createTime || 'Error'} max={30} />
</Typography>
</TableCell>
</TableRow>