Compare commits
2 commits
cdf43438cc
...
aa62eaef6c
Author | SHA1 | Date | |
---|---|---|---|
|
aa62eaef6c | ||
|
385a422add |
2 changed files with 3 additions and 3 deletions
|
@ -88,7 +88,7 @@ class ArticleDetails extends React.Component {
|
|||
this.setState({selected:!this.state.selected},()=>{
|
||||
console.log(this.state.selected)
|
||||
if (this.state.selected){
|
||||
this.props.select()
|
||||
this.props.select(this.props.id)
|
||||
} else {
|
||||
this.props.deselect()
|
||||
}
|
||||
|
|
|
@ -46,8 +46,8 @@ export default class Stock extends React.Component {
|
|||
this.getArticles()
|
||||
}
|
||||
|
||||
select = () => {
|
||||
|
||||
select = (id) => {
|
||||
console.log(id)
|
||||
this.setState({counter:this.state.counter+1},()=>{
|
||||
console.log(this.state.counter)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue