mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-18 21:07:44 +03:00
Don't display "Comment" field in details if it is empty
This commit is contained in:
parent
b3f373cdb4
commit
153cf8f5af
@ -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>
|
||||
)
|
||||
|
@ -29,6 +29,9 @@ export const SongDetails = (props) => {
|
||||
if (!record.discSubtitle) {
|
||||
delete data.discSubtitle
|
||||
}
|
||||
if (!record.comment) {
|
||||
delete data.comment
|
||||
}
|
||||
if (record.playCount > 0) {
|
||||
data.playDate = <DateField record={record} source="playDate" showTime />
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user