mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-15 18:08:46 +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) ? (
|
||||
<MyChip
|
||||
label={topic}
|
||||
key={{ topic }.topic.id} // BUG: this value is undefined
|
||||
key={{ topic }.id}
|
||||
onDelete
|
||||
deleteIcon={<DoneIcon />}
|
||||
/>
|
||||
) : this.state.following ? (
|
||||
<MyChip
|
||||
label={topic}
|
||||
key={{ topic }.topic.id} // BUG: this value is undefined
|
||||
key={{ topic }.id}
|
||||
color="secondary"
|
||||
clickable
|
||||
onClick={key => this.handleAdd(topic)}
|
||||
/>
|
||||
) : (
|
||||
<MyChip
|
||||
label={topic}
|
||||
key={{ topic }.topic.id} // BUG: this value is undefined
|
||||
color="secondary"
|
||||
/>
|
||||
<MyChip label={topic} key={{ topic }.id} color="secondary" />
|
||||
)
|
||||
) : (
|
||||
<p></p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user