Removed the albumSong workaround, as React-Admin's cache seems to behave better now
This commit is contained in:
@@ -33,14 +33,14 @@ const AlbumShowLayout = (props) => {
|
||||
<ReferenceManyField
|
||||
{...context}
|
||||
addLabel={false}
|
||||
reference="albumSong"
|
||||
reference="song"
|
||||
target="album_id"
|
||||
sort={{ field: 'album', order: 'ASC' }}
|
||||
perPage={0}
|
||||
pagination={null}
|
||||
>
|
||||
<AlbumSongs
|
||||
resource={'albumSong'}
|
||||
resource={'song'}
|
||||
exporter={false}
|
||||
album={record}
|
||||
actions={
|
||||
|
||||
@@ -115,7 +115,6 @@ const AlbumSongs = (props) => {
|
||||
rating: isDesktop && config.enableStarRating && (
|
||||
<RatingField
|
||||
source="rating"
|
||||
resource={'albumSong'}
|
||||
sortable={false}
|
||||
className={classes.ratingField}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user