mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-18 11:08:47 +00:00
fixed topic.id bug
This commit is contained in:
parent
a4efc15d58
commit
116f97bf64
@ -254,24 +254,20 @@ class user extends Component {
|
|||||||
this.state.myTopics.includes(topic) ? (
|
this.state.myTopics.includes(topic) ? (
|
||||||
<MyChip
|
<MyChip
|
||||||
label={topic}
|
label={topic}
|
||||||
key={{ topic }.topic.id} // BUG: this value is undefined
|
key={{ topic }.id}
|
||||||
onDelete
|
onDelete
|
||||||
deleteIcon={<DoneIcon />}
|
deleteIcon={<DoneIcon />}
|
||||||
/>
|
/>
|
||||||
) : this.state.following ? (
|
) : this.state.following ? (
|
||||||
<MyChip
|
<MyChip
|
||||||
label={topic}
|
label={topic}
|
||||||
key={{ topic }.topic.id} // BUG: this value is undefined
|
key={{ topic }.id}
|
||||||
color="secondary"
|
color="secondary"
|
||||||
clickable
|
clickable
|
||||||
onClick={key => this.handleAdd(topic)}
|
onClick={key => this.handleAdd(topic)}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<MyChip
|
<MyChip label={topic} key={{ topic }.id} color="secondary" />
|
||||||
label={topic}
|
|
||||||
key={{ topic }.topic.id} // BUG: this value is undefined
|
|
||||||
color="secondary"
|
|
||||||
/>
|
|
||||||
)
|
)
|
||||||
) : (
|
) : (
|
||||||
<p></p>
|
<p></p>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user