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