Replace _id by id
This commit is contained in:
@@ -38,8 +38,8 @@ const StyledList = styled(List)((
|
||||
export default function KomanteList({komante}) {
|
||||
return (
|
||||
<StyledList className={classes.root}>
|
||||
{komante.map(({_id, username, kontni, sentAt}) => (
|
||||
<div key={_id}>
|
||||
{komante.map(({id, username, kontni, sentAt}) => (
|
||||
<div key={id}>
|
||||
<ListItemText
|
||||
primary={
|
||||
<Typography gutterBottom style={{fontWeight: 'bold'}} variant='body1'>
|
||||
|
||||
Reference in New Issue
Block a user