UI: Fine tuning the resource navigation

This commit is contained in:
Deluan
2020-01-22 14:18:55 -05:00
parent 04637b24cd
commit e5e20750e5
3 changed files with 13 additions and 6 deletions
+4 -2
View File
@@ -15,8 +15,10 @@ const ArtistFilter = (props) => (
</Filter>
)
const artistRowClick = (id, basePath, record) =>
`/album?filter={"artist":"${record.name}","artist_id":"${record.id}"}&order=ASC&sort=year`
const artistRowClick = (id, basePath, record) => {
const filter = { artist_id: id }
return `/album?filter=${JSON.stringify(filter)}&order=ASC&sort=year`
}
const ArtistList = (props) => (
<List