fix: sort by album in songs view
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { Link } from 'react-admin'
|
||||
import React from 'react'
|
||||
|
||||
export const AlbumLinkField = (props) => (
|
||||
<Link
|
||||
to={`/album/${props.record.albumId}/show`}
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
{props.record.album}
|
||||
</Link>
|
||||
)
|
||||
|
||||
AlbumLinkField.defaultProps = {
|
||||
source: 'albumId',
|
||||
addLabel: true
|
||||
}
|
||||
Reference in New Issue
Block a user