Don't display "Comment" field in details if it is empty
This commit is contained in:
@@ -40,7 +40,9 @@ const AlbumDetails = (props) => {
|
||||
<BooleanField source="compilation" />
|
||||
<DateField source="updatedAt" showTime />
|
||||
<SizeField source="size" />
|
||||
<MultiLineTextField source="comment" />
|
||||
{props.record && props.record['comment'] && (
|
||||
<MultiLineTextField source="comment" />
|
||||
)}
|
||||
</SimpleShowLayout>
|
||||
</Show>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user