Fix react key conflic
This commit is contained in:
@@ -36,7 +36,7 @@ const SongDetails = (props) => {
|
|||||||
<TableBody>
|
<TableBody>
|
||||||
{Object.keys(data).map((key) => {
|
{Object.keys(data).map((key) => {
|
||||||
return (
|
return (
|
||||||
<TableRow key={record.id}>
|
<TableRow key={`${record.id}-${key}`}>
|
||||||
<TableCell component="th" scope="row">
|
<TableCell component="th" scope="row">
|
||||||
{translate(`resources.song.fields.${key}`, {
|
{translate(`resources.song.fields.${key}`, {
|
||||||
_: inflection.humanize(inflection.underscore(key)),
|
_: inflection.humanize(inflection.underscore(key)),
|
||||||
|
|||||||
Reference in New Issue
Block a user