Removed the albumSong workaround, as React-Admin's cache seems to behave better now

This commit is contained in:
Deluan
2021-06-15 11:31:41 -04:00
parent 667701be02
commit 8a56584aed
7 changed files with 7 additions and 15 deletions
+2 -2
View File
@@ -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={
-1
View File
@@ -115,7 +115,6 @@ const AlbumSongs = (props) => {
rating: isDesktop && config.enableStarRating && (
<RatingField
source="rating"
resource={'albumSong'}
sortable={false}
className={classes.ratingField}
/>